Portal Home > Knowledgebase > Articles Database > Small javascript help needed.
Small javascript help needed.
Posted by Igotit, 06-10-2007, 06:20 AM |
Is there a way to incoperate a onmouseover on an iframe?
What I mean is when the mouse hoover over the iframe then an action will occur.
Thanks.
|
Posted by Codelphious, 06-10-2007, 01:36 PM |
Iframes do not have event handlers (e.g. onclick, onmouseover, etc.).
If you're controlling what is output into the iframe, then you could apply the onmouseover event to a tag that encapsulates the entire iframe to get the same effect. Another solution would be to use AJAX to act as an iframe.
|
Posted by Xeentech, 06-10-2007, 01:55 PM |
is a nice elegant approach.
If it has to be an iframe then you could have an onmouseover event call code from the parent document..
|
Posted by Premier, 06-11-2007, 07:10 PM |
Maybe if you put the iframe page in a div and include onmouseover in there.
|
Add to Favourites Print this Article
Also Read
NetFusion (Views: 476)