Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q1425

irt.org | About | Feedback | 4369 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q1425

Sent by
Joe Page on January 15, 2003 at 15:22:18:

Worth:
Worth reading

Comments:
I had trouble with Mozilla since it seemed to have a little of IE and a little of NS in it.

I was able to get Mozilla to work by passing 'event' to the keyPress() function. In IE you can just reference window.event (as this example shows), Mozilla wouldn't work that way.

Here's what I used;

onkeypress="return keyPress(event)"

[here's the js function it calls]

function keyPress(e) {
if (typeof(e) == "undefined") return true;
else if (typeof(e.keyCode) != "undefined") {
if (e.keyCode == 13) {
return doSearch();
}
}
return true;
}

Sorry this isn't very detailed but I was hoping it could be of use to someone


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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.