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!

DHTML Question

Status
Not open for further replies.

pbellc

Programmer
Jun 6, 2003
36
US
I am trying to create a menu bar using DHTML that will live on several hta files. I had to use hta files to develop the pages (over HTML) because of ActiveX controls. Becuase they are hta files they won't open in the same browser everytime. So I had the idea to create the floating menu bar using DHTML that would live on the side of every hta file. My problem is that I would like to close the existing hta file once someone clicks on one of the links in the menu bar. Is that possible? Any suggestions would be appreciated.
 
OK. Perhaps my question wasn't clear enough, I'm kind of new at this.

What I want to do is to close the parent window on the open of the child window. Will this make the child window now the parent window? Do I put the code inside the DHTML menu code, or in the hta code of the pages? I only want the parent window to close when a click event happens within the confines of the menu -- no when a user clicks somewhere within the hta document.

I hope this is a clearer quesiton. I really appreciate any help someone can give.
 
in the new window you can close the parent onload by saying:

window.opener.close();

this will however bring up an alert box asking if you would like to close the window.

If the window was opened in script then you dont get the alert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top