popup - Redirect to a new tab within javascript file

Mots clés : javascriptpopupanchorjavascript

meilleur 4 Réponses popup - Redirect to a new tab within javascript file

vote vote

98

window.open('http://stackoverflow.com', '_blank'); 
vote vote

87

window.open("someurl", "_blank"); 
vote vote

71

let a= document.createElement('a'); a.target= '_blank'; a.href= 'https://example.com/'; a.click(); 
vote vote

69

 window.open ('URL', "_newtab" );     

Questions similaires