Saturday, March 21, 2009

Create Hyperlink That Opens In A New Window


The basic structure of a hyperlink looks like this:


<a href="http://www.bloglabs.info">
 
As you can see, we have all we really need to create a link and make it go somewhere.  But how would we make it open a new window?  Easy.  We need to add one more property to the 'A' tag to make it do what we want.  All we need to add is:

target="_blank"
That's it!  Just like the href property/value pair (href="some value"), we simply include the target="_blank" to the 'A' tag and we're done.  Here is what the finished product will look like:
 
<a href="http://www.bloglabs.info&lt " target="_blank"> BlogLabs< </a>
 

Sometimes, editors (not people, the ones we use to write posts with)
will provide this functionality as an option for you when you create a
hyperlink.  Blogger does not do this, you need to
view the HTML source, find the 'A' tag you want to modify and then add
the target="_blank" value pair to the hyperlink definition.

0 comments:

Post a Comment

 

My Blog List

Hello

Dynamic Templates © 2008 Business Ads Ready is Designed by Ipiet Supported by Tadpole's Notez