View Full Version : Close Window Link Only Visible in Popup
03-10-2005, 11:35 PM
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, 05:34 AM
if (opener) document.write('<a href="#" onclick="window.close()">Close Window</a>');
03-11-2005, 03:35 PM
Thanks Glenn, this works great!!!
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.