Unified way of closing a browser window in JavaScript? -


is there way close browser window, guaranteed? last time heard, calling window.close() or self.close() works when current window launched window. there way majority of browsers close current window when isn't so?

there no way close parent window via script without prompting in major browser.

so nope, no guarantees. on child window, window.close , self.close both work great.


Comments

Popular posts from this blog

java - netbeans "Please wait - classpath scanning in progress..." -

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -