Friday, November 14, 2008

Time Delayed execution of function in Javascript

I had complained about re-directing my site by some un-known ghosts.
I have created a simple function which stops it from re-direction but also gives enough time to load the contents...
<script>
window.setTimeout('window.stop()',3000);
</script>
Reference:
http://www.howtocreate.co.uk/tutorials/javascript/timers

No comments: