I'm wondering is there anyway I can force popup.html to close?
Asked
Active
Viewed 5.3k times
139
-
Do you want to close it while your in the popup or some other page closing it? – Mohamed Mansour Feb 08 '11 at 06:06
1 Answers
286
Within a popup javascript:
window.close();

serg
- 109,619
- 77
- 317
- 330
-
4
-
12@MahbubulHaque Have the foreground bind an event listener to the background page. The background page triggers the event and the foreground responds by closing itself. – Sean Anderson Dec 20 '14 at 01:02
-
@SeanAnderson - could you point me to some code that illustrates this? – Sridhar Sarnobat Aug 21 '16 at 21:37