Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in posts by timo1978 only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
timo1978
User Profile
Collapse
Profile Sidebar
Collapse
timo1978
Last Activity: Feb 6 '08, 01:55 PM
Joined: Feb 6 '08
Location:
Subscriptions
1
Subscribers
0
Activities
About
Media
Subscribed
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Source
All
timo1978 only
Visitor Messages Only
Advanced
Filtered by:
Clear All
new posts
timo1978
replied to
addEventListener not working in mozilla
in
Javascript
Feb 6 '08, 01:55 PM
The correct syntax is:
Code:
document.addEventListener('keydown', my_onkeydown_handler, true);
The DOM Level 2 event model doesn't follow the old naming convention of "on
eventname
". Note however that IE's attachEvent() method
does
require the event name to start with "on".
See more
|
Go to post
Leave a comment:
Post Comment
Cancel
No activity results to display
Show More
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Leave a comment: