button and an iframe : onmouseout

L

louvino

Hi,

I have a button.
When I click on this button, a menu in a iframe appears.

I can't put the code of the iframe in the same div.

I would like that :
if I do a "mouseout" of the button and if the mouse is not on the
iframe
then hide iframe

I don't understand how doing that ! :-(
 
S

scripts.contact

Hi,

I have a button.
When I click on this button, a menu in a iframe appears.

I can't put the code of the iframe in the same div.

I would like that :
if I do a "mouseout" of the button and if the mouse is not on the
iframe
then hide iframe

check toElement/relatedTarget :
if((event.toElement||event.relatedTarget)['tagName'].toLowerCase()!
='iframe')
//hide iframe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top