The location of the title in a new tab

Possible duplicate:
redirect in a new window

Please do not mind if this is a stupid question,

Is it possible in php to open a window in a new tab using

  header(Location: 'blahblah');
+7
source share
2 answers

No, It is Immpossible. The title will simply redirect the current page in the current window / tab.

+16
source

No, this is not possible with php, since php is a server-side language, and what you want is a client-side function. So you have to do it with javascript.

You can try something like this via javascript

<script type="text/javascript" language="Javascript">window.open('http://www.example.com');</script>
+8
source

Source: https://habr.com/ru/post/1709766/


All Articles