Page 1 of 1

How to get to a new window through hyperlink

Posted: Tue May 20, 2003 7:48 pm
by binoy3012
hi!
i'm new with php,so just trying to work with it. I have a problem with this code:

echo "<a href=\"second.php\" >click here.</a><br />";

I want the 'second.php' page to open in a new window.Can anyone tell me what changes should i make so that when i click on 'click here', the second.php page should open in a new window.

thanks,
binoy

Posted: Tue May 20, 2003 7:52 pm
by will
set the target of the anchor to "_blank"

Code: Select all

<a href="page.html" target="_blank">click me</a>

Posted: Tue May 20, 2003 7:59 pm
by binoy3012
Thank you Will!
i was setting it as target=new.

thanks anyway!
binoy.