Javascript - Opening new window with new tab

-1

Good night, I would like to know if it is possible to open a new window, with the window.open(); method, and a new tab in that window created?

All this in Javascript, jQuery or HTML.

    
asked by anonymous 29.03.2018 / 23:00

1 answer

0
<a href="javascript:novaJanela('https://www.google.com')">Clique aqui para abrir</a>

<script>
    function novaJanela (URL){
        window.open(URL,"janela1","width=800, height=600, directories=no, location=no, menubar=no,scrollbars=no, status=no, toolbar=no, resizable=no")
    }
</script>
    
29.03.2018 / 23:54