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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to close pop up window that contains frames

Status
Not open for further replies.

fiuPikeOY

Programmer
Jun 14, 2004
143
US
Hello,

I'm trying to close a pop up window that has a frame set using the following code:

<a href="" onClick="window.close()">click here</a>

but when I hit "click here" it keeps the pop up open and it takes me to the root folder. I think it just closed the frameset that had the close link. I need to kill the entire pop up. Any help?

thanks in advance
 
try this..
Code:
<a href="#" onClick="window.close()">click here</a>
if adding that doesnt work, make this change too:
Code:
<a href="#" onClick="top.close()">click here</a>
hope it helps

"Whether you think that you can, or that you can't, you are usually right." - Henry Ford
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top