Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do I create a link in a new window?
Old 10-25-2006, 11:40 AM How do I create a link in a new window?
Novice Talker

Posts: 8
Trades: 0
Very Simple question:

To create a link to another page in the existing window, I simply type:

<a href="popup.asp">Test this</a>

But how would I modify this code to get the link to appear in a new window? preferably that is minimized to a small size that only covers about a quarter of the screen or even less?
gfunkera is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-25-2006, 03:27 PM Re: How do I create a link in a new window?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
<a href="popup.asp" target=_blank>Test this</a>

Although I would discourage the use of the target attribute. Using some javascript instead would be better:
http://www.456bereastreet.com/archiv...pt_version_12/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-01-2006, 02:19 PM Re: How do I create a link in a new window?
Novice Talker

Posts: 8
Trades: 0
Thanks for that quick simple reply. But why would you discourage using 'target' attribute?
gfunkera is offline
Reply With Quote
View Public Profile
 
Old 11-01-2006, 02:34 PM Re: How do I create a link in a new window?
Skilled Talker

Posts: 54
Name: Shannon
Trades: 0
Sounds like your best bet would be javascript. I would do a search for a javascript pop-up window.

You would be able to find many that would fit your needs.

This is a generic script from Dreamweavers snippets.

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=no,resizable=no,copyhistory=y es,width='+width+',height='+height+',left='+left+' , top='+top+',screenX='+left+',screenY='+top+'');
}

Hope this helps
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
shannonlp is offline
Reply With Quote
View Public Profile Visit shannonlp's homepage!
 
Old 11-01-2006, 06:40 PM Re: How do I create a link in a new window?
Nahele's Avatar
Extreme Talker

Posts: 204
Trades: 1
Quote:
Originally Posted by gfunkera View Post
Thanks for that quick simple reply. But why would you discourage using 'target' attribute?
W3C has deprecated this attribute in XHTML
__________________
The worst things in life allow us to appreciate the best things

virtual kudos (a.k.a. talkupation) always welcome where deserved.
Nahele is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I create a link in a new window?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17018 seconds with 12 queries