When writing and submitting pages, we sometimes encounter repeated submission issues after refreshing. The following method uses the blocking method:
<Script language = "JavaScript">
// Disable the F5 key
Function document. onkeydown ()
{
If (event. keycode = 116)
{
Event. keycode = 0;
Event. cancelbubble = true;
Return false;
}
}
// Disable context menu
Function document. oncontextmenu ()
{
Return false;
}
// Below Code Full Screen Display
Function window. onload (){
VaR request = new array (); // Save the Parameter
VaR S = location. Search. substring (1 );
Foreign Language House
If (S & S! = ""){
VaR list = S. Split ("&");
For (VAR I = 0; I <list. length; I ++ ){
VaR pair = list [I]. Split ("= ");
If (pair [0] & pair [0]! = ""){
Request [Unescape (pair [0])] = Unescape (pair [1]);
}
}
}
VaR fullscreen = request ["fullscreen"];
If (fullscreen! = "Yes "){
Var file = self. location;
VaR A = Window. Open ("about: blank", "", "fullscreen = yes ")
Self. Opener = NULL inland transportation
Self. Close ()
A. Location = file + "? Fullscreen = yes ";
}
}
</SCRIPT>