Jump to content

Question about HTML Code on geocaching.com


RiverCacher

Recommended Posts

Posted

This question is only slightly related to geocaching, but here goes:

 

On most hyperlinks to web sites that are external from geocaching.com, a new browser window is opened when you click on that link...

 

How is that done?

 

Scott

 

32121_600.jpg

Lynchburg, Virginia

Posted

It's done by specifying a target window. In this case, it uses "TARGET=_blank". This causes the URL to be opened in a new browser window. The leading underscore indicates it's a general name (there are others, like "_TOP"), rather than a specific named window.

 

PS_sig.gif

Posted

UBB code isn't playing. But just for the record, an example in html for what you're asking for would look like this:

<a href="http://www.geocaching.com" target="_blank">The Best Site in the World</a>  

 

The target="_blank" as Prime Suspect explained is what opens it up into the new window, which is quite convenient...especially if you want people to come back to the page they are clicking from!

Guest
This topic is now closed to further replies.
×
×
  • Create New...