aximbigfan Posted March 21, 2008 Share Posted March 21, 2008 I have noticed that when you use onchange in firefox, it doesn't work. The user has to actually hit enter for the event to trigger. Any way around this? Chris Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 21, 2008 Share Posted March 21, 2008 I've never seen this issue. What kind of element are you using the onchange event for? How are you setting the onchange? Can you post a sample? Quote Link to comment Share on other sites More sharing options...
aximbigfan Posted March 22, 2008 Author Share Posted March 22, 2008 I'm using it in a textarea... <textarea onchange="alert('hi!');"></textarea> What is really happening, is that when you make a change, nothing happens UNTIL you click out of the box, which is not the way it should work, right? Chris Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 24, 2008 Share Posted March 24, 2008 If you want the event to fire on each keystroke, try using an onkey* event instead, there are a couple different ones: onkeydown - A keyboard key is pressed onkeypress - A keyboard key is pressed or held down onkeyup - A keyboard key is released Here is a list of all JS Events: http://www.w3schools.com/jsref/jsref_events.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.