Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
grantgv
regular


Reg'd: Wed
Posts: 91
Loc: West Sussex
Opening a link in new window
      #32820 - Tue Jan 06 2004 08:31 PM

Hi all
Can you help me.
I think I have read how to do this in a mag in the last few months but I can't find it at the moment.
How do I get a link from my website to another site, to open in a new window.
Many thanks for any answers.
grahamgv
Now www.walkinginwestsussex.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonny555



Reg'd: Fri
Posts: 5310
Loc: Cheshire, England
Re: Opening a link in new window [Re: grantgv]
      #32823 - Tue Jan 06 2004 08:36 PM

< a href="http://www.othersite.com" target="_blank" >Name of link< /a >




Post Extras: Print Post   Remind Me!   Notify Moderator  
grantgv
regular


Reg'd: Wed
Posts: 91
Loc: West Sussex
Re: Opening a link in new window [Re: Jonny555]
      #32837 - Tue Jan 06 2004 08:55 PM

Hi Jonny
Thanks for the quick reply.
I spend a lot of time reading this web-user forum and have learnt a great deal over the past 2 years.
keep up the good work
graham


Post Extras: Print Post   Remind Me!   Notify Moderator  
safeTsurfa
regular


Reg'd: Mon
Posts: 693
Re: Opening a link in new window [Re: Jonny555]
      #32900 - Wed Jan 07 2004 09:47 AM

Actually there is more to this than just that one tag line. There are three default target names: _blank, _new and _self. Each one is universally understoof to mean (for the first two) a new window, and for the lst one the current (same) window.

However, you can make the target name anything you want, example _FRED. The browser recognises this as a window name and will always revert to that window wherever that same target name is used.

Example, I could place several links on a web page, each referring to different target names. Thus each one would open a completely new window, different from the others. The original page is already loaded into _self, and the others will take on the name given as the target name.

So, once they are all open, you could then direct more content to replace existing content in specific windows, by re-using a target name to tell it which one to load into. This is especially useful where you include target names with javascript to set the size and position of a new window.

So, by mixing the two, you could open several different sized windows at different places on the screen, then alternate content between them simply by re-using target names to direct which one to use for that click.
safeTsurfa
Stay alert! Stay safe! Stay alive!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 3 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 55

Contact Us | Privacy statement Main website