K
klaus1
Hi,
I tried many times to redirect after a page is disabled, and the user
presses F5 or anything else.
Therefore I found the onbegforeunload event, which might be usefull.
I don't like any kind of message box, just if the user gets the page,
each keypress should redirect on another page.
Only the first request should be placed on the site.
My code:
<html>
<head>
<script type="text/javascript">
window.onbeforeunload= function(){
window.location.href('http://www.google.com');
}
</script>
</head>
<body>
timeout exceeded!
</body>
</html>
It does not work..
any suggestions for me without having a message box?
thanks,
Klaus
I tried many times to redirect after a page is disabled, and the user
presses F5 or anything else.
Therefore I found the onbegforeunload event, which might be usefull.
I don't like any kind of message box, just if the user gets the page,
each keypress should redirect on another page.
Only the first request should be placed on the site.
My code:
<html>
<head>
<script type="text/javascript">
window.onbeforeunload= function(){
window.location.href('http://www.google.com');
}
</script>
</head>
<body>
timeout exceeded!
</body>
</html>
It does not work..
any suggestions for me without having a message box?
thanks,
Klaus