Most versions do not work anymore due to security restrictions. Be sure to click the ‘Open in New Window/Tab’ button on the page to open a new popup window, and then click the ‘Close This Window/Tab’ button on the newly opened window. A link to using script to open and script to close is included. You must use the complete code (HTML AND JAVASCRIPT BOTH!) for this to work. I have not seen any examples of modern browsers not working with this script if the above requirement has been met.įor those with hassles with window.close() or self.close() not working, there is a way for a JavaScript button to do this. If you are running any security programs, test the sample page first with them disabled if you are having issues. If you wish to close a page that has been posted via form, the page must first have still been opened in a separate window. NOTE: This script has 1 requirement that the page to be closed cannot be the original page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |