Author Topic: link in new window  (Read 4321 times)

Offline hidden

  • Junior Member
  • **
  • Posts: 74
    • eugenepictureframing
link in new window
« on: March 15, 2010, 04:05:28 PM »
I have been helping a friend build a website using sitespinner pro. I posted a question on the sitespinner forum and they are really helpful. But my question "how do I know exactly where to place "target="_blank" in a html code wasn't answered with great depth. Maybe you might be able to add more. Here is the link to the forum and my post ... http://virtualmechanics.infopop.cc/eve/forums/a/tpc/f/8296057891/m/118107493

Offline hidden

  • Sami
  • Administrator
  • Senior Member
  • *****
  • Posts: 5924
  • Not a geek. Just a Nerd.
    • CSB Tutorials
Re: link in new window
« Reply #1 on: March 15, 2010, 06:06:49 PM »
Quote
It worked where you placed the "target" I tried placing it all over the place but you knew exactly where ... so how do you know where to place the "target="_blank" ?

You are asking where to put it into every link?  Sometimes that depends on the code being used.
GENERALLY speaking, I will break apart the code to help explain how/why so you will recognize these components the next time.  The TARGET is added immediately following the link URL, before the > as shown in these samples:

A basic link is surrounded by this code:
Code: [Select]
<a href=""> and </a>
Here is a standard TEXT LINK:
Code: [Select]
<a href="URL">LINK TEXT</a>  
Code: [Select]
<a href="http://www.samisite.com/">HOME PAGE</a>  HOME PAGE  

with target specified:
Code: [Select]
<a href="URL" TARGET="_blank">LINK TEXT</a>  
Code: [Select]
<a href="http://www.samisite.com/" TARGET="_blank">HOME PAGE</a>  


Here is a standard IMAGE LINK:
Code: [Select]
<A HREF="LINK URL"><IMG SRC="IMAGE.JPG" ALT="MOUSEOVER TOOLTIP"></A>
With target code added:
Code: [Select]
<A HREF="LINK URL" TARGET="_top"><IMG SRC="IMAGE.JPG" ALT="MOUSEOVER TOOLTIP"></A>
of course there are other snippets that can be added to specify more info, location, borders, size, etc.....
« Last Edit: March 15, 2010, 06:22:30 PM by Samrc »
-Samantha
TNG: "Sometimes, you can make no mistakes, do everything right, and still lose" - Capt Picard to Data
(:turtle: In memory of Turtle: May 22, 1944 - Nov 24, 2007  GURU, mentor, and really nice guy! :turtleleft: )