gpinfotech
asked on
how to disable refresh button for browser in asp.net
Hi experts,
I want to block refresh button for browser .
i am using following javascript ,it works for me ,but it is disabling only F5. Please help
if (document.all){
document.onkeydown = function (){
var key_f5 = 116; // 116 = F5
if (key_f5==event.keyCode){
event.keyCode = 27;
return false;
}
}
}
I want to block refresh button for browser .
i am using following javascript ,it works for me ,but it is disabling only F5. Please help
if (document.all){
document.onkeydown = function (){
var key_f5 = 116; // 116 = F5
if (key_f5==event.keyCode){
event.keyCode = 27;
return false;
}
}
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please write JS to block the key F5 in keypress or keydown event.
Also hide the REfresh button using javascript.
Also hide the REfresh button using javascript.
ASKER
Thanks alot
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
http://forums.asp.net/p/1279327/2455531.aspx
Open in new window