none
How to disable refresh button in IE toolbar.

    Question

  • Hi All,
    I am currently developing webpages in which one of the requirement is that refresh has to be disabled. So right click was disabled(to avoid refresh by pressing right click), refresh by pressing F5 and Ctrl+R  was diabled using javascript event capture.
    But the only other think left out is to disable is browser's refresh button. I am not able to find a way to do it.
    Kindly request to post ur replies ASAP...
    Sunday, November 25, 2007 7:41 PM

All replies

  • Hi,

     

    The Navigation bar on which the Refresh button resides is a core security feature. There are replacement Toolbars for the Navigation bar (quero.at) on which you can choose to include the Refresh button or not, but unfortunately this solution would not be available to the general public visiting your site.

     

    You could use Modal or Modeless windows that have the toolbar option switched off or if your web site is on a publicly available network choose to run IE only in kiosk mode. All of these methods can provide a browser interface that does not display the Navigation bar by default.

     

    see. showModalDialog, showModelessDialog and createPopup

     

    I have not tested it but from memory I think the refresh button only refreshes from the cache, so if you allow your web pages to be cached then in effect pressing the refresh button will not send a request back to your server, then you only have to worry about disabling the Ctrl+F5 shortcut that forces a refresh from the server.

     

    Regards.

    Monday, November 26, 2007 8:55 PM
  • Well the requirement in that on login the request goes to the server and thte response is displayed on the same window by setting the target as "_parent". So none of these can be used "showModalDialog, showModelessDialog and createPopup".
    So the toolbar cannot be removed as it is in the same window as the login window. So now the refresh has to be disabled. And as u pointed put on press of refresh button the contents of the cache are refreshed, but our webpages have code to avoid page being cached....  So even that option is ruled out..

    So if anyone knows wat to do let me know....
    Thursday, November 29, 2007 7:25 PM