Jump to content

How do i make a pause and play even on page refresh


lovephp

Recommended Posts

guys i got this code which works ok for redicreting to a url in 4seconds when the page loads or refreshes but how could i make a pause and play for this and store it in session so that it do not redirect?

<script type = "text/javascript">

window.setTimeout("autoClick()", 4000); // 4 seconds delay

function autoClick() {
var linkPage = document.getElementById('dialit').href;
window.location.href = linkPage;
}
</script> 

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.