Opening new Window with HTML/PHP

Status
Not open for further replies.

Blasteh

Lord Farquaad
Apr 3, 2013
1,151
513
Hi,
The most obvious way of opening a new tab upon clicking something is using
Code:
target="_blank"

But, how would I open a whole different window? I tried many different things, but none seem to work.
 

MayoMayn

BestDev
Oct 18, 2016
1,423
683
You would have to use for this:

Code:
<a href="print.html" 
   onclick="window.open('print.html',
                        'newwindow',
                        'width=300,height=250');
             return false;"
 >Print</a>
 
Status
Not open for further replies.

Users who are viewing this thread

Top