I have this code to redirect to another site. I'm wondering if someone can help me building a 5s delay into this?
jQuery(document).ready(function($){
$(location).attr("href","www.example.com")
});
Cheers!
I have this code to redirect to another site. I'm wondering if someone can help me building a 5s delay into this?
jQuery(document).ready(function($){
$(location).attr("href","www.example.com")
});
Cheers!
setTimeout(function(){
$(location).attr("href","www.example.com");
}, 5000);
more detail could be find at below link Check the link