Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript closing windows  RSS feed

 
Steve Mutonshi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I have a browser window opened and from there I click to open a new window. How do I implement a close window button so I when I click it, both windows will be closed ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't. You can't close windows you did not open.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!