I need a script thats redirects the user to a second side, when the mainpage need to long to load.
I did this:
<script type=\'text/javascript\'>
$(document).ready(function() {
setTimeout(\"location.replace(\'contact.html\')\",10000);
});
</script>
To sametime a preloader opens an get hided on on body onload, when that happens i need to kill the functon above?
Anybody an idea?





Rating:
The post javascript – Quit function on body onLoad appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/javascript-quit-function-on-body-onload.html
No comments:
Post a Comment