Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    InnerHTML is evil. It is better to use nodeValue. Commented Nov 9, 2009 at 10:20
  • 1
    @i2ijeya: e is the default parameter that is given to event-handling functions in FF, Opera and WebKit based browsers, an Event object. @silent: It is evil, but it is also foolproof. Using nodeValue involves testing if a firstChild exists. Commented Nov 9, 2009 at 10:24
  • You can, by the way call the 'e' whatever you like. Most tutorials go with 'event' here. Commented Nov 9, 2009 at 10:26