0

hi..
i used this code to display a clock.

<script type="text/javascript">
var int=self.setInterval("clock()",1000);
function clock()
{
var d=new Date();
var t=d.toLocaleTimeString();
document.getElementById("apDiv1").innerHTML=t;
}
</script>

in firefox it displays like this 7:25:00 PM
and in Chrome 19:25:39
i want to show a similar clock as in firefox in Chrome. How can i change it?

3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by Taywin
0
function clickCheck(obj,rbselfcollection)
 {
 if (rbselfcollection.checked) {

     }
  else
         alert("First CheckSelf-Collection by User at");
}

i am using onmousedown="clickCheck(rbself1,rbselfcollection) in the calling radiobutton tag.

This code is working fine in IE.....how can i change it to Firefox Browser? can any one pls assist?

Edited by Nick Evan: Fixed formatting

0

Next time, please do not high jack other's post. You could create a new one for your question.

To answer your question, could you post your HTML portion of the function call? Currently, it seems that you pass in wrong variables. In IE, it may handle differently (in a non-standard way).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.