window.close() Restrictions

added by DotNetKicks
2/5/2021 1:09:23 AM

1432 Views

Sometimes, Web Developers are surprised to find that the window.close() API doesn't always close the browser window. When looking at the Developer Tools console, they'll see a message like Scripts may close only the windows that were opened by them. Why Do Browsers Limit close()? Before we dive into what variables govern what happens when...


0 comments