|
|
|
grantgv
regular
Reg'd: Wed
Posts: 91
Loc: West Sussex
|
|
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
|
|
Jonny555
Reg'd: Fri
Posts: 5310
Loc: Cheshire, England
|
|
< a href="http://www.othersite.com" target="_blank" >Name of link< /a >
|
grantgv
regular
Reg'd: Wed
Posts: 91
Loc: West Sussex
|
|
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
|
safeTsurfa
regular
Reg'd: Mon
Posts: 693
|
|
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!
|
|
|