LargestWindowIndex = largestWindowIndex + 1 įor(var optctr= 0 optctr < wins. Var Options var wins = new Array() var largestWindowIndex = 0 My_('The Popup Window') Ĭall the below defined function on openWindow to open the pop-up and the other function on the onunload event of the parent page.įunction openWindow(url, width, height, top, left, name) You can close the current window using self.close () If you have the reference to a window, you can use the reference to the window to close.įor example: popup_window = window.open("") If you attempt to close any other window, a confirm message is displayed, asking the user to choose whether the window is to be closed or not. Feel free to ask back any questions and I will be here to help. Other options and illustrations here: I hope it helps to have all options. The close method closes only windows opened by JavaScript using the open method. The fastest way is to press Alt + Tab, hold Alt while tabbing through the icons and pressing Del for each one you want to close. However, there are certain security restrictions for using the close () method. The window.close () method could be used to close a window. It may be needed that you need to give a close link in the popup you created. Refer to this Using the window.close method
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |