disable refresh or F5
2 posters
Page 1 of 1
disable refresh or F5
does anyone know a javascript that would disable the refresh or F5?
i'm making something like a test and i don't want the members to be able to refresh the page to play again..
i tried several scripts.. but most of them didn't work.. only one did but it disabled all the keyboard functions like arrow down.. T.T
please help...
i'm making something like a test and i don't want the members to be able to refresh the page to play again..
i tried several scripts.. but most of them didn't work.. only one did but it disabled all the keyboard functions like arrow down.. T.T
please help...
Re: disable refresh or F5
there is script can disable F5, but unfortunetely its only working on IE, Here script for it.
Other browser such firefox or opera its still can refreshed using F5, the problem is you cant change the operating system functionality from within any browser except IE.
- Code:
<script language="javascript">
function document.onkeydown()
{
if ( event.keyCode==116)
{
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>
Other browser such firefox or opera its still can refreshed using F5, the problem is you cant change the operating system functionality from within any browser except IE.
Adiex- Active Poster
- Posts : 1014
Reputation : 33
Language : er?
Location : back alive & kicking xD
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum