Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

Opening a new window from a link.....

Can anyone tell me how to open a link in a new window?
0
java_lover
Asked:
java_lover
1 Solution
 
xabiCommented:
If the link is:

<a href="foo.htm">Click here</a>

change it into:

<a href="foo.htm" target="_blank">Click here</a>

xabi
0
 
CJ_SCommented:
or if you want a totally new and speical window (with wi8dth and height etc) you can do:

<a href="javascript:openwindow(...)">Click here</a>
0
 
java_loverAuthor Commented:
Thanx!!
0
 
WEBSlaveCommented:
Right click on the link and select "open in new window"
Works every time...
WEBSlave
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now