Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1407 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Help with Target Link

Thread title: Help with Target Link
Reply    
    Thread tools Search this thread Display Modes  
11-24-2012, 06:15 PM
#1
kaymeis is offline kaymeis
Status: I'm new around here
Join date: Jun 2012
Location: accra
Expertise: design, writing
Software: photoshop, alleycode, GIMP,
 
Posts: 13
iTrader: 0 / 0%
 

kaymeis is on a distinguished road

  Old  Help with Target Link

I'm trying to create a target window for a link but it's not working. Here is the code.

<li><a href ="hatbox_painted_large.html" Target="_self"><img src="E:/Vintage Antiques/Vintage Antiques
Graphics/GSH102_1930's_Hat_box_painted_large_£105x.jpg" width="170" height="227"border="0" alt="Hatbox Painted Large"/></a>
</br>1930'sHatbox Painted Large - <strong>£105</strong></li>

11-25-2012, 12:34 AM
#2
newkid is offline newkid
Status: Junior Member
Join date: Sep 2006
Location:
Expertise: PHP,MySQL, HTML(5), CSS
Software: Photoshop, Sublime Text2,MS VS
 
Posts: 63
iTrader: 1 / 100%
 

newkid is on a distinguished road

Send a message via Skype™ to newkid

  Old

If the page you indicated, hatbox_painted_large.html, is not found in the same directory as the page containing this link it will not work. Try correcting the relative path or use an absolute path.

If your problem is that you can't open the link in a new page it is because you should be using "_blank" or the name of the target window and not "_self" as the target property value.

11-25-2012, 01:18 AM
#3
Zara is offline Zara
Status: Member
Join date: Apr 2006
Location:
Expertise:
Software:
 
Posts: 249
iTrader: 9 / 100%
 

Zara is on a distinguished road

  Old

For more information, you can checkout w3schools.com. They're a great source of information for learning the basics.

http://www.w3schools.com/tags/att_a_target.asp

As newkid said, if you're getting a 404 Page Not Found error; you need to ensure that your href attribute is correctly pointing to the file you're trying to link to.

Also, be careful with using local absolute URL's. If you move the files, that image won't work either. I'm assuming this is for a college course in Dreamweaver or something... If you have to submit the files to your professor and he/she stores them in C:\Students\INFO 105-02\Vintage Antiques\<name>\ then your image will no longer be located in E:\Vintage Antiques\Vintage Antiques\Graphics and result in a missing image...

Hope this helps!

Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed