czukoman20 Posted March 12, 2008 Share Posted March 12, 2008 Is there a way to make a close page link or button? Link to comment https://forums.phpfreaks.com/topic/95734-php-close-page-button/ Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 <a href="javascript:window.close();">Close Window</a> Link to comment https://forums.phpfreaks.com/topic/95734-php-close-page-button/#findComment-490159 Share on other sites More sharing options...
phpSensei Posted March 12, 2008 Share Posted March 12, 2008 edit: Try <script language="javascript" type="text/javascript"> function closeWindow() { window.open('','_parent',''); window.close(); } </script> <a href="javascript:closeWindow();">Close Window</a> Link to comment https://forums.phpfreaks.com/topic/95734-php-close-page-button/#findComment-490165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.