SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IE6 reverse bug! At last some good news...

    Hi!

    I just found out that for IE6 (standard mode and quirks mode), for DOM Level 2 events (haven't tested for DOM Level 1), the event object is available just like in Firefox, that is as the first argument in the event handler function. I named the first argument eent (vokuntarily misspelled eent instead of event) so as to assure myself that IE6 didn't take the variable named event as window event.

    CCl: For IE6 and on, no more need to have this ****** code (I hate it):

    function eventHandler(event)
    {
    if (typeof event == "undefined")
    {
    event = window.event;
    }

    ...
    }


    Thanks!

  2. #2
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do believe the behavior applies only to event handlers set with the IE only attachEvent method. It gets you coming or going...

  3. #3
    SitePoint Addict
    Join Date
    Feb 2003
    Location
    eez
    Posts
    331
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by mrhoo
    It gets you coming or going...
    What do you mean by that?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •