Our Scripts Vault contains many game scripts that you can use to create your own game!
<body onload="javascript:startChat(); onloadfocus();"> <div id=divEnnuiChat style="height: 99%; width: 100%; overflow: hidden;"> <font size=1><div id="divChat" style="height: 95%; width: 100%; overflow: auto;"> </div></font> <div id="divControl" style="height: 5%; width: 100%; overflow: hidden;"> <form name="ChatControl" id="ChatControl" onkeypress="{if (event.keyCode==13)blockSubmit()}"> <input type="text" name="StackOverflow1370021" value="Fix Submit bug" style="display:none" /> <input type="text" class=chattext name="Message" id="Message" autocomplete=off maxlength=1000 style="width: 65%;"> <input type="button" class=chatbutton name="ChatButton" id="ChatButton" value="Send" onclick="javascript:sendChatText();"> <a href="JavaScript:getChatText();"><img src="/EnnuiImages/System/Reload.png"></a> </form> </div> </div></body>
function blockSubmit() { sendChatText(); return false;}
Code: [Select] <form name="ChatControl" id="ChatControl" onkeypress="{if (event.keyCode==13)blockSubmit()}">
<form name="ChatControl" id="ChatControl" onkeypress="{if (event.keyCode==13)blockSubmit()}">
blockSubmit()
return blockSubmit()
onkeypress="if (event.keyCode==13) { blockSubmit() }"
onkeypress="blockSubmit(window.event)"
function blockSubmit(event) { if (event.keyCode != 13) { return } // Your actual function}