Javascript - Opening new window with new tab

Asked

Viewed 638 times

-1

Good evening, I wonder if it is possible to open a new window with the method window.open();, and a new tab in this window created ?

All this in Javascript, jQuery or HTML.

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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.