Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop F5(Refresh) in Browser?
Message
From
19/05/2003 10:53:59
Fabian Belo
Independent Developer
Argentina
 
 
To
19/05/2003 06:57:35
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00789922
Message ID:
00790007
Views:
26
Ashok;

You can use some JS as follows:
<script language="JScript">

document.onkeydown=keyDown; 

// Disable F5 Refresh

function keyDown(){ 

if(event.keyCode==116) {event.returnValue= false; event.cancelBubble=true; event.keyCode=0;} 

} 

</script>
>Hi all,
>
>How can we stop F5(Refresh) button being pressed by the user in Browser?
>
>Thanks in advance.
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform