[Javascript] curious frame and event handle question

Josiah Gordon jgordon at directfile.com
Wed Jun 12 16:16:47 CDT 2002


MessageMy guess is that the frameset page will get it unless you set
something else. That seems to be the default page (at least in IE). Go to a
frame page and hit Edit-View Source. You'll always get the frameset.


--JG
  -----Original Message-----
  From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Scott.Wiseman
  Sent: Wednesday, June 12, 2002 1:38 PM
  To: 'javascript at LaTech.edu'
  Subject: RE: [Javascript] curious frame and event handle question




   <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/5963e3dc/attachment.htm>


More information about the Javascript mailing list