is there any script when page refresh its redirect to an other page?
is there any script when page refresh its redirect to an other page?
How does your page gets refreshed? via meta tag or another JS function?
Anyway, you can use:
Hope that helps.Code:location.href='http://www.google.com'
Get back if you're still stumped.
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
when people click on refresh button or press f5 then it can be redirect?how can i?
When people press F5, you can redirect it to another page, but not when the refresh button is pressed:
Hope that helps.Code:<script type="text/javascript"> window.onload=function() { document.onkeydown=function(event) { var keyCode=event.keyCode?event.keyCode:event.which?event.which:event.charCode; if(keyCode==116) // If F5 is pressed location.href='http://www.google.com'; // Redirects to another URI } } </script>
Learn how to code at 02geek
The more you learn, the more you'll realize there's much more to learn
Ray.ph!
if a have auto refresh page script then i can redirect?or can i disable refresh button?
Bookmarks