Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Webspace, E-Mail & Browsing Issues (https://www.cableforum.uk/board/forumdisplay.php?f=80)
-   -   HTML Question (https://www.cableforum.uk/board/showthread.php?t=19272)

Womble 25-10-2004 22:33

HTML Question
 
I have a question for the HTML kings and Queens among us.
Using html to build a webpage, I have come accross a wee problem! I have inserted a picture, I have, using the command line
<a href="http://www.ncma.org.uk"> given the picture a hyperlink. My problem is, how do I get it to open in a new window.

Please answer as if talking to a 10 year old :Yikes: as my grasp of html is very limited, and thats being kind!! :dunce:

gary_580 25-10-2004 22:54

Re: HTML Question
 
when you say a new window do you mean a new instance of your browser?


if so you need to use

<a href="http://www.ncma.org.uk" target="_blank">

However targeting a link to open in a new window violates the Web Content Accessibility Guidelines and (if you're in the United States or other country with comparable antidiscrimination legislation) is quite possibly illegal under federal civil rights law.

altis 25-10-2004 22:55

Re: HTML Question
 
You'll need to change the link to this:
<a href="http://www.ncma.org.uk" target="_blank">

punky 25-10-2004 23:00

Re: HTML Question
 
What altis said is 100% correct, but a couple more things that might help you about it.

you can replace "_black" for "framename" if you have frames, to open a link in a frame.

Also, if you have more than one link, add this to the <head></head> section above the <body></body>:

<base target="whatever">

And it will apply, as default to every link.

HTH

Paul 25-10-2004 23:05

Re: HTML Question
 
You can actually put any name in the "target=" if you want.

See http://www.htmlcodetutorial.com/linking/_A_TARGET.html

edit: oh well, beaten to it, but the link should still be useful. :)

Womble 25-10-2004 23:13

Re: HTML Question
 
Quote:

Originally Posted by gary_580
when you say a new window do you mean a new instance of your browser?


if so you need to use

<a href="http://www.ncma.org.uk" target="_blank">

However targeting a link to open in a new window violates the Web Content Accessibility Guidelines and (if you're in the United States or other country with comparable antidiscrimination legislation) is quite possibly illegal under federal civil rights law.

Wow, thats heavy!! Both the sites in question are genuine, one is a govenment site for childminding, the other is the childminding association. I didn't wnat to write below the pics, please right click and open new window. I thought it would be better to set it up to do it for the "viewer". Would I still contravien the law with these sites??

PS: Thanks everyone for your replies, never had such a responce!! :tu:


All times are GMT +1. The time now is 00:27.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum