I encountered several cases of using window.open to open a new window to be intercepted (using the Chrome browser, other browsers are not measured):
first time:window.open (Www.jb51.net), opened a new window, but the page did not load out, need to enter to come out
Workaround: The page address needs to be prefixed with the protocol name http://or https://
Second: using the Window.Open method in the callback function that succeeds in the Ajax asynchronous request, although the protocol name is added, the new window is not opened and the words intercepted are displayed directly in the Address bar.
Solution: There are two kinds of methods:
1. Change Ajax asynchronous request to synchronous request
2. use var NewWindow = window.open ("_blank"); newwindow. location = "URL address";
The above window.open open window is intercepted fast solution is small series to share all the content, hope to give you a reference, but also hope that we support cloud habitat community.