New Window

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
glennalmeda
Forum Newbie
Posts: 14
Joined: Mon Jan 26, 2004 9:00 pm

New Window

Post by glennalmeda »

Can someone help me on how to open a new window after clicking a link... i dont want the page be displayed on the same window.
thank you.
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

read about..

Code: Select all

target=_blank
target=_self
target=_new

ect....
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

PHP is server side, opening windows are client side. You will have to use HTML (as mentioned above) or Javascript to open a new window.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to Client Side forum.

Mac
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

target="_blank" in the html will always call it in a new window.
in javascript it's window.open('location','target','optional arguments')

where that's target, replace with target name, and _blank for always being new
Post Reply