Several situations I encountered when I was blocked when using window.open to open a new window (the Chrome browser used, other browsers have not tested):
The first time: window.open(www.VeVB.COM), a new window was opened, but the page was not loaded, and it needed to press the car to come out.
Solution: The page address needs to be added with the protocol name http:// or https://
The second time: Use the window.open method in the callback function with successful ajax asynchronous request. Although the protocol name is added, the new window is not opened, and the intercepted words are directly displayed in the address bar.
Solution: There are two types:
1. Change ajax asynchronous request to synchronous request
2. Use var newWindow = window.open("_blank");newWindow .location = "url address";
The quick solution to the above article window.open is to be intercepted by intercepting the window. This is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.