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

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

binding - How can you make the color of elements of a WPF DrawingImage dynamic? -

c# - How to add a new treeview at the selected node? -