Skip to content Skip to sidebar Skip to footer

Window Event Is Not Working In FireFox

I am using this function to write and display the text on the same page which is working perfectly in all browsers except 'FireFox'. Any Idea or helping material ? Thanks in advanc

Solution 1:

Change myEvent.which to myEvent.target

It is not which key was pressed but which object was clicked you are looking for.

Make sure you are passing event in the handler if it is inline

<... onkeyup="handleEvent(event)"...

DEMO


Post a Comment for "Window Event Is Not Working In FireFox"