Need to run an onclick on a div with iframes and flash

Discussion in 'JavaScript' started by jpigford, Oct 3, 2007.

  1. #1
    I'm trying to track clicks on content that is within a div. Unfortunately that content will usually contain an iframe or flash or both.

    I've tried doing one div as an overlay over the iframe (as suggested here), but that pretty much kills anything under the overlay...meaning users can't actually click through to what is in the iframe or flash.

    So, any ideas on how to pull this off?
     
    jpigford, Oct 3, 2007 IP
  2. codyrockx

    codyrockx Peon

    Messages:
    33
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why not add the onclick onto the iframe or object layer? To have an actual div layer return an onclick the click area is going to cover up anything beneath; that's unavoidable.
     
    codyrockx, Oct 3, 2007 IP