[Javascript] curious frame and event handle question

Scott.Wiseman swiseman at remax-cahi.com
Wed Jun 12 15:37:48 CDT 2002


 
 <SCRIPT TYPE="text/javascript">
<!--
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
 
if (keycode == 13)
   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}
//-->
</SCRIPT>
 

onKeyPress="return submitenter(this,event)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020612/4d80da52/attachment.htm>


More information about the Javascript mailing list