This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Event.observe and clickElem.addEventListener giving me undefined error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Event.observe and clickElem.addEventListener giving me undefined error" Watch "Event.observe and clickElem.addEventListener giving me undefined error" New topic
Author

Event.observe and clickElem.addEventListener giving me undefined error

rakesh krish
Greenhorn

Joined: Jan 09, 2011
Posts: 7



Hello All,

I was trying to use Event.observe and but i am getting undefined error. I used clickElem as well but to no avail.



Is there any alternative for Event.observe or clickElem in plain JavaScript?? IE is throwing me undefined error for both scenarios





Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Event handling in JavaScript


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Event.observe and clickElem.addEventListener giving me undefined error
 
Similar Threads
Undefined error
Call javascript function from Flash Form
Prototype 'mouseover' Event
wrong ELF class: ELFCLASS64
not able to call javascript function