We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to disable the Refresh Button

Thread ID:





42725 Apr 5,2006 02:11 AM Apr 5,2006 07:34 AM ASP.NET Web Forms (Classic) 1
Tags: FAQ
Asked On April 5, 2006 02:11 AM

Hi, I am Sabareeswaren doing an In-House Project. I am currently doing a "Video on Demand" project in that i need to show a movie which should appear for a particular time span, after that i should close. My Problem is while running the movie, if i Press F5 or REFRESH button, the movie get stopped and strarts from the beginning. Please do help me to finish this!!!!!! Thnaks in Advance!!! Sabareeswaren.

Administrator [Syncfusion]
Replied On April 5, 2006 07:34 AM

Hi, You can prevent using the F5 by using the following script ,and this can only be done in IE browser. if (document.all){ document.onkeydown = function (){ var key_f5 = 116; // 116 = F5 if (key_f5==event.keyCode){ alert("No refresh allowed"); return false; } } } and not sure about disabling the button in the button bars. Best Regards, Hari.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.