How to disable the Refresh Button

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.

1 Reply

AD Administrator Syncfusion Team April 5, 2006 11:34 AM UTC

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.

Loader.
Up arrow icon