Clearing An IFRAME by selecting in list box
i have a problem, first of all i have 2 IFRAMES on a page both controlled by list boxes (dropdown boxes). e.g. if i select a title in the first box it opens the correct page in the first iframe and if i select a option in the second list box it opens the correct page in the second IFRAME. my problem is that i only want to display one option at a time. For example if i select option 1 on the first list box it will open the correct page in the first iframe but if i select option 2 in the second list box it will open the correct page in the other iframe. i only want 1 page to display at a time so if i select option 1 in the first list box and then select option 2 in the second list box i want it to then hide (or navigate the first iframe to a bank page so it is not displayed) and only want the second iframe to show and vise versa.
any ideas?
timjpriebe posted this at 13:41 — 27th March 2006.
He has: 2,667 posts
Joined: Dec 2004
You will need to give each of the iframes a NAME attribute. Then, refer to that name in your link. It's the same as standard frames.
There's a decent guide to frames here:
http://www.lissaexplains.com/frames.shtml
Tim
http://www.tandswebdesign.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.