W3School example doesn't work on FireFox

RESOLVED INVALID

Status

()

Firefox
Untriaged
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: hcchen5600, Unassigned)

Tracking

37 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.3; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150415140819

Steps to reproduce:

1. Study and try w3school.com's example on Firefox
http://www.w3school.com.cn/tiy/t.asp?f=hdom_event_ctrlkey
2. It doesn't work only on Firefox.



Actual results:

"Click somewhere in the document" no response.
IE and Chrome are ok. Firefox in trouble.


Expected results:

"Click somewhere in the document" should pops up an alert box says if your Ctrl-key is pressed or not.
It works if you click on the text. If you make the body bigger e.g.

<body style="width:100%;height:100%" onmousedown="isKeyPressed(event)">

the it works throughout.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.