Jquery - intercept links clicked inside an iframe

Posted by Kaskade on Stack Overflow See other posts from Stack Overflow or by Kaskade
Published on 2010-04-29T11:32:13Z Indexed on 2010/04/29 11:37 UTC
Read the original article Hit count: 390

Filed under:
|
|

Hi,

I am trying to intercept links clicked on a page including those inside an iframe. This is the code that I have but it is not working. Any ideas what I need to do?

$("#container").delegate('a', 'click', function(e){ 
//do stuff
}

Container is the id of the div just inside the iframe.

Thanks in advance for any advice

© Stack Overflow or respective owner

Related posts about iframe

Related posts about jQuery