I have the following function:
Code:
function keyclick(e) {
var keynum;
if (window.event) { // IE
keynum = e.keyCode; }
else { // Opera, Netscape, Firefox
keynum = e.which; }
if (keynum == 13) {
// Enter pressed, do other stuff
}
}
[/quote]
That's supposed to trap the enter key. However, the code never gets called because the page refreshes itself. How do I tell the page not to refresh on Enter?
-------------------------
Call me barely Impressive Captain.