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

Feedback on: irt.org FAQ Knowledge Base Q1785, Wednesday March 05, 2008 at 03:39:10

You are here: irt.org | About | Feedback | 5226 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q1785

Sent by
Andreas Lange on Wednesday March 05, 2008 at 03:39:10

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);">





Other feedback on 'irt.org FAQ Knowledge Base Q1785' - show all

©2018 Martin Webb