Webb今天遇到了用JS关闭当前页面窗口没反应的问题,看Console说是Scripts may close only the windows that were opened by it. 我用的是. window. close 复制代码. 不行. 后来百度 … Webb13 mars 2024 · 在页面中触发window.close(),页面没有按照预期那样关闭,控制台提示警告:Scripts may close only the windows that were opened by it. 意思是脚本只能关闭通 …
Page not found • Instagram
WebbYou will see this in the console when it fail, "Scripts may close only the windows that were opened by it.". That means The hacky workarounds (Brock Adams's answer) may not work in the latest release. So, in the previous Chrome released builds, the below code block may worked but not with this update. window.open('', '_self', ''); window.close(); Webb15 juli 2024 · You will see this in the console when it fail, Scripts may close only the windows that were opened by it.. That means The hacky workarounds (Brock Adamss … tattoo easy
javascriptのwindow.close()について - teratail[テラテイル]
Webbwindow.close(); 但是关闭 Chrome 浏览器会有问题. Scripts may close only the windows that were opened by it. 关闭当前页面js:open(location, '_self').close(); //For NON-IE … Webb5 mars 2024 · If you check the message in the Chrome Developer Tool Console, you will find such message: Scripts may close only the windows that were opened by it. You could refere the same question in StackOverflow: window.close and self.close do not close the window in Chrome Webb20 juni 2024 · window.close(); - it shows warning in Edge console that “Scripts may close only the windows that were opened by them”. } I tried to create the window object … tattooed against my will