Unfortunately, it simply displays 0 and hangs (shows hourglass in browser).
I am running my page on XP Professional, using javacript.
Code is as follows:
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- var x = 0;
- function ticker()
- {
- document.write(x);
- x++;
- if ( x == 9 )
- {
- x = 0;
- }
- }
- function cinterval()
- {
- setInterval(function() { ctick(); }, 1000);
- }
- function ctick()
- {
- cinterval();
- ticker();
- }
- </script>
- </head>
- <body onload="cinterval();">