iframe capture mousedown event
Hi,
I am working for quite some time now on the following problem:
I'd like to execute some code when a user clicks inside an iframe (content on same domain). The following call works so far:
- $("#iframeID").contents().find("body").doSomeStuff();
When the user clicks on a link within that frame, the frame posts back (2. site is being displayed)....from this time on the above mentioned call does not work anymore. The code is located outside, so it should not touch anything. The strange thing is, that it works for the first site, but not for sub sites?!
The structure looks like the following:
<html>
<head>
<the script with the call />
</head>
<body>
<iframe>
<head>
</head>
<body with content>
</body>
</iframe>
</body>
<html>
If anyone has an idea about that, I would be grateful.
Best regards,
Patrick