preventing an event handler attached by attachEvent getting executed

Discussion in 'Javascript' started by wolverine, Sep 27, 2007.

  1. wolverine

    wolverine Guest

    Hi,
    I am injecting a javascript code into html pages and attaching
    some dom events to some elements via attachEvent (IE only). I just
    want to know that is there any chance by which my event handler not
    getting executed ? ie, is there some means for the web developer to
    prevent any further handler getting executed for the same event on the
    same element ?

    To be more clear, assume the web developer has attached function
    "f1()" on onclick of <a> tag. I will then go on attaching function
    f2() to onclick of the same <a> tag. Is there some thing in "f1()"
    that can prevent f2() from getting executed ?

    Thanks in Advance
    Kiran.
    wolverine, Sep 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    680
    Damien
    Feb 22, 2007
  2. Tony Johansson
    Replies:
    1
    Views:
    307
    Martin Honnen
    Dec 7, 2009
  3. wolverine
    Replies:
    3
    Views:
    104
    wolverine
    Sep 28, 2007
  4. wolverine
    Replies:
    2
    Views:
    149
    wolverine
    Nov 20, 2008
  5. Erwin Moller
    Replies:
    13
    Views:
    224
    Eric Bednarz
    Jul 26, 2009
Loading...

Share This Page