Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<textarea name="msg" cols=50 önKeydown="Javascript: if (event.keyCode==13) {loadXMLDoc();rs();}"

is not working in mozillafirefox
but working in chrome and IE
Posted

1 solution

It is a known issue and multiple discussions[^] can be found on internet.

FF doesn't use window.event for keypress, but expects the event to be passed as a parameter to the function handling it
Look 'Fang' answer here for similar discussion on how to handle it: window.event.keycode 13 won't work in Firefox[^]

Another link that will help: http://www.ryancooper.com/resources/keycode.asp[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900