Closed Bug 288300 Opened 19 years ago Closed 19 years ago

Drop-down "select" boxes do not fire JavaScript 'onchange' event when changed with keyboard

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 126379

People

(Reporter: benryves, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

A select box in a form, when in focus, can not be changed with the mouse scroll
wheel like a normal Windows select box. However, you can change it with the
cursor keys. This does NOT fire a onchange event, even though the value in the
box has changed.

Reproducible: Always

Steps to Reproduce:
Create an HTML document with a select box. Stick
onchange="javascript:window.alert('boo!')" in the HTML. View the page. Go to the
box, change the value it shows. The alert pops up. Now, with it focussed, press
up and down on the keyboard.
Actual Results:  
Nothing.

Expected Results:  
It should have popped up an alert box.

*** This bug has been marked as a duplicate of 126379 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.