469,946 Members | 1,739 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,946 developers. It's quick & easy.

capture mousedown inside Iframe

Here is my code:::

<iframe id="test" name="test" width="840" height="880"
frameborder="no" scrolling="no" onmousedown=alert("wow")></iframe>

what is wrong why cant i get mousedown function inside Iframe

How to fix it - please send me code...

Feb 23 '08 #1
1 2615
428 256MB
Your iframe is in the current window, but any events come from the window contained by the iframe. If the document in the iframe has the same origin as the containing page you can access those events, but you have to go through the contained window and its own document tree.
Feb 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by crferguson | last post: by
4 posts views Thread by Venkatesh | last post: by
2 posts views Thread by lmefford | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.