...

View Full Version : IFRAME Trouble: how to know if the user clicks it...



Crasy_J
06-25-2002, 01:53 AM
Hi,
I'm using a menu on my page and an IFrame. The webpage displayed inside the Iframe consists of a frameset of two frames.

I want to close the Menu when someone clicks on the iframe. To do so, I'm looking for an event that fires "onclick" or something like that when one clicks on the Iframe...

any Ideas?

thank you for your patience and any help, ideas, solutions.



regards

Joanna

x_goose_x
06-25-2002, 02:21 AM
You can't use onclick on the iframe tag itself, but you can use onfocus. Just give the div that the menu is in an id and you can use the following:

<iframe onfocus="document.getElementById('theid').style.display='none';" ...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum