window.close() doesn't work - Scripts may close only the windows that were opened by it

后端 未结 4 1208
别跟我提以往
别跟我提以往 2020-11-29 11:50

I\'m having a problem always when I\'m trying to close a window through the window.close() method of the Javascript, while the browser displays the below messag

4条回答
  •  离开以前
    2020-11-29 12:42

    I searched for many pages of the web through of the Google and here on the Stack Overflow, but nothing suggested resolved my problem.

    After many attempts, I've changed my way of to test that controller. Then I have discovered that the problem occurs always which I reopened the page through of the Ctrl + Shift + T shortcut in Chrome. So the page ran, but without a parent window reference, and because this can't be closed.

提交回复
热议问题