This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes onchange and onsubmit event is called when enter key is pressed in Mozilla, ok in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onchange and onsubmit event is called when enter key is pressed in Mozilla, ok in IE" Watch "onchange and onsubmit event is called when enter key is pressed in Mozilla, ok in IE" New topic
Author

onchange and onsubmit event is called when enter key is pressed in Mozilla, ok in IE

sourav sen
Greenhorn

Joined: Jul 01, 2008
Posts: 7
hi,

I'm facing a problem in Mozilla which is ok in Ie.

I have few input boxes in my page. After entering some text in one field and pressing the enter key, Onchange event is called for every wrong input and cursor goes back to re-enter the text. In Mozilla when enter key is pressed it first called the onchange event and then simultaneously calling the onsubmit function written in Javascript. In IE it is not throwing the onsubmit event before going to the next field unless it is the last field of the page.
What is the problem in Mozilla?

Please suggest necessary soultion.

Regards,

Sourav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onchange and onsubmit event is called when enter key is pressed in Mozilla, ok in IE
 
Similar Threads
basic doubt
show /hide data based on autocomplete results.
the enter key forces a submit
Javascript submit problem
Setting cursor to a field