Java Script Help
I have written a countdown timer using javascript as Countdown.html.
It works fine in Mozila Firefox. But Not working in IE. Pls help ---
<html>
<head>
</head>
<script language="javascript">
var COUNTER_START = 5
function tick () {
if (document.getElementById ('counter').firstChild.data >0) {
document.getElementById ('counter').firstChild.data = document.getElementById ('counter').firstChild.data - 1
setTimeout ('tick()', 1000)
} else {
document.getElementById ('counter').firstChild.data = 'Your Account Has Been Credited.'
window.location = 'crdtd.php?q=b'
}
}
if (document.getElementById) onload = function () {
var t = document.createTextNode (COUNTER_START)
var p = document.createElement ('P')
p.appendChild (t)
p.setAttribute ('id', 'counter')
var body = document.getElementsByTagName ('BODY')[0]
var firstChild = body.getElementsByTagName ('*')[0]
body.insertBefore (p,firstChild)
tick()
}
</script>
<body>
Please wait while you see the message - "Your Account Has Been Credited"!!!
</body>
</html>
View Answers
Ads
Related Tutorials/Questions & Answers:
Java Script Help
Java Script Help I have written a countdown timer using javascript...
help ---
<html>
<head>
</head>
<
script language....'
window.location = 'crdtd.php?
q=b
Need Help on the script
Need
Help on the script hello there,
My name is Femi and am a web developer using php. am working on a project. and am having some difficulties. i dont know if you can
help me out with it.
The platform am building will receive
Advertisements
Java script
Java script Source code for capturing the screen using
Java Script
Java Script
Java Script Hi,
Any one please share a code to swap the 2strings using
java script
Java Script
Java Script What is
Java Script? How to learn
Java Script?
Hi
Java Script is client side programming language. It runs on browser....
You can learn
Java Script from our JavaScript - JavaScript Tutorial pages
java script
java script how to write a
Java script program to enter number in two text fields and then automatically display the total in another text field
Java script
Java script a
java script code for accept 10 numbers from the user and print in the
descending order without using sort method
java script
java script Hi,
Any one please tell me how, to store below elements in an array using
java script
12,13,14,a,b,xyz
Java Script.
Java Script. Hi Sir,
The below
java script code is not working in Google chrome can yo give me the solution as soon as possible.
<
script type="text/javascript">
function setValue(){
var val="";
var frm
Java Script.
Java Script. Hi Sir,
The below
java script code is not working in Google chrome can yo give me the solution as soon as possible.
<
script type="text/javascript">
function setValue(){
var val="";
var frm
Java Script.
Java Script. Hi Sir,
The below
java script code is not working in Google chrome can yo give me the solution as soon as possible.
<
script type="text/javascript">
function setValue(){
var val="";
var frm
Java Script.
Java Script. Hi Sir,
The below
java script code is not working in Google chrome can yo give me the solution as soon as possible.
<
script type="text/javascript">
function setValue(){
var val="";
var frm
Java Script
Java Script Hello Sir, Is it possible to select only current date from datetimepicker in struts2 through
java script validation. Means when i select....
Try to send me
java script validation code for this purpose that user won't
Java Script.
Java Script. The below code is nit working in Google chrome can any one tell me the solution as soon as possible.
<
script type="text/javascript">
<!--
function setValue(){
var val="";
var frm
Java Script.
Java Script. Hi i want to submit two form using javascript.The below code submitting two forms in server but its not working in browser like chrome and firefox am struggling for many days give me solution as soon as possible
java script
java script how will you identify whether the number entered by the user has two digits or three digits.Assuming that the user enters only a three digit or two digit number.
<HTML>
<HEAD>
<
SCRIPT
java script
getElementById() what is the use of getElementById() method in jsp? Can you please explain it with the
help of an example
java script
java script write a
java script code which provide a menu for user which will enable him/her to either add or subtract or multiply or divide two numbers and produce the corresponding result.
<html>
<
java script
java script when you click a button how will you change the background color of a web page
java script
java script I want to display set of radio buttons after i select one option of the combobox
java script
java script what is the use of getElementById() method in jsp.
and give me its full knowledge with a example
java script
java script hi deepak, i have small doubt in the date ranges that when i select the date range then it display on the text boxes.
example:suppose i select the weekly date range then the dates are display on the text boxes up
Java Script
Java Script I want to display an error message for the validation of email at the top of the page in red font i want to use
java scripts but i dont want to use alert box what i need to do
<html>
<script>
Merging of java script with servlet program
Merging of
java script with servlet program how can we merge the
java script with the any servlet program for making web application intractive.Is there any program you have.\please
help me to sove out this problem
Java Script location.replace method
Java Script location.replace method Hi,
What does `Print `{<
SCRIPT LANGUAGE="JavaScript"> location.replace("} & urlpop & {","BOTTOM") </SCRIPT>}
this mean as this is written in an Lotus
Script agent and I
Java script in servlet
Java script in servlet Hi. How to use javascript inside
java servlet? Thanks in advance
script code - Java Beginners
script code hi,
thanks for ur fast reply. plzz, give me a sample code for PHP function under
script tag.
regards,
sakthi Hi friend,
Code to
help in solving the problem :
Hello PHP World
java script code
java script code Hi Deepak,
Firstly wanna share the problem em facing:
working with servlet and jsp for my project. I have 3... understand the environment and
help me. Thanks in advance for ur
help.
Regards
Java Script Program
Java Script Program <%--
Document : index
Created... are available in the Sun
Java System Application Server 9.1 logs.
Sun
Java System Application Server 9.1
Where Is The Problem? Please
Help
Java Script Program
Java Script Program <%--
Document : index
Created... are available in the Sun
Java System Application Server 9.1 logs.
Sun
Java System Application Server 9.1
Where Is The Problem? Please
Help