When window.open(url,"_blank"), is invalid, the following method can be used.
function openwin(url) {var a = document.createElement("a");a.setAttribute("href", url);a.setAttribute("target", "_blank");a.setAttribute("id", "camnpr");document.body.appendChild(a);a.click();}The above is the JavaScript implementation based on JavaScript to open the URL on a new tab page. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!