Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1785

Feedback on: irt.org FAQ Knowledge Base Q1785

Sent by on Sunday June 24, 2007 at 23:20:54 - feedback #4736

Worth:

Length:

Technical:

Comments:
This works only on IE not Firefox




Sent by Andreas Lange on Wednesday March 05, 2008 at 03:39:10 - feedback #5226

Worth:
Not worth reading

Length:
Too short

Technical:
Not technical enough

Comments:
To make this work with the different eventmodels in IE and Firefox/others something like this is needed:

function stopEnter(e) {
e = e || window.event;
var code = e.keyCode || e.which;
if (code == 13) {
// Possibly call some other function here,
// like an AJAX search instead of submitting the form
return false;
}
return true;
}

<input type="text" onkeypress="return stopEnter(event);">





©2018 Martin Webb