Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide a Div on a parent page.

Status
Not open for further replies.

ironhide1975

Programmer
Feb 25, 2003
451
US
I have an iFrame that is enclosed in a hidden DIV, when a person clicks the SHOW button, the iFrame pops up and shows a selection of files. I want it so when the user clicks on the file in the iFrame it closes the parent page's DIV that contains it. Can anyone show me how to do this?

I think it's something like this

Code:
window.parent.nameofdiv.style.display = 'none';

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top