Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) Document (8) Events (8) ExtJS (9) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1)
Exchange Links About this site Links to us 
New related comments Number of comments in the last 48 hoursReload a web page with a javascript function 1 new comments
|
Can I disable the Refresh button in Internet Explorer
24 comments. Current rating: (6 votes). Leave comments and/ or rate it.
Question: Is it possible to disable the Refresh button in Internet Explorer?
Answer: To our best knowledge, this is not possible.
Comments:
| You are on page 1 of 2, other pages: [1] 2 | |
anonymous from India
|
 |
|
|
Event type load is fired when a page loads. This may also be useful when the refresh button on the menu is clicked.
|
|
myfriendhari@rediffmail.com from India
|
 |
|
|
I hope this will help full
just write this code in between <head> ... </head>
<script language='javascript'>
var a=0;
function refresh()
{
if (116==event.keyCode)
return false;
}
document.onkeydown = function (){ refresh(); }
function logout()
{
// write ur code.....
}
window.onunload = function(){
if(a==116)
{
a=0;
return;
}
else if(event.clientX>0 && event.clientY<0)
return;
else if(event.clientX<0 && event.clientY<0)
logout();
}
</script>
contact me : myfriendhari@rediffmail.com
|
|
|
|
|
where is refresh button in ie 7
|
|
|
|
|
In IE7, refresh button is right next to url bar (with arrow icon) jus to left of stop button. (with X icon)
|
|
|
|
|
Where/How does 'a' get it's value to be able to be 116?
window.onunload = function(){
if(a==116)
{
a=0;
return;
}
|
|
|
|
|
yes you are right
|
|
|
|
|
hi i am aryan please solve the problem that below mentioned code is not working in Firefox Mozilla
<script language='javascript'>
function document.onkeydown()
{
if ( event.keyCode==116)
{
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>
|
|
|
|
<script language='javascript'>
function openit()
{ win3=window.open(' http://www.google.c..ble=yes');
}
</script>
//FOR BODY PART
<BODY onUnload='openit();return true'>
i want to perform the functionality that when user try to exit the current window a form is open and without filling form user cannot exit the window
|
|
|
|
|
can any body help to disable the browser refresh button
|
|
|
|
|
<script language='javascript'>
function document.onkeydown()
{
if ( event.keyCode==116)
{
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>
by writing above code, I can disable only F5 button but not refresh icon , is there any code to disable refresh icon.
|
|
|
|
|
EFE
|
| You are on page 1 of 2, other pages: [1] 2 |
|