faqts : Computers : Programming : Languages : PHP : Not Quite PHP : Javascript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

25 of 39 people (64%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I make a link automatically open a new window?

Oct 4th, 2001 09:17
Russ Locke, Nathan Wallace, Mark Maggelet


Try like this:
    echo "<a href=\"javascript:window.open( 
               'page.php3?bno=$bno')\">Keywords Management</a>";
    or
    <a href="www.yahoo.com" target="new">yahoo</a>