View Full Version : Close Window Link Only Visible in Popup
03-11-2005, 12:35 AM
Please help! Does anyone know how to create a text link "Close Window" that will appear on a popup window. The trick is, I need it to appear only if the window is a popup window not if it is the parent window. Please help! Thanks.
03-11-2005, 06:34 AM
if (opener) document.write('<a href="#" onclick="window.close()">Close Window</a>');
03-11-2005, 04:35 PM
Thanks Glenn, this works great!!!
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.