Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | HTML Question

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Virgin Media Services > Virgin Media Internet Service > Webspace, E-Mail & Browsing Issues
Register FAQ Community Calendar

HTML Question
Reply
 
Thread Tools
Old 25-10-2004, 22:33   #1
Womble
cf.geek
 
Womble's Avatar
 
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 58
Services: 1gig Broadband
Posts: 864
Womble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of Quads
Question 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 as my grasp of html is very limited, and thats being kind!!
Womble is offline   Reply With Quote
Advertisement
Old 25-10-2004, 22:54   #2
gary_580
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 25-10-2004, 22:55   #3
altis
Inactive
 
altis's Avatar
 
Join Date: Jun 2003
Location: Warrington ntl:81304 Altitude: 12m (and falling)
Posts: 4,499
altis has a nice shiny staraltis has a nice shiny star
altis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny staraltis has a nice shiny star
Re: HTML Question

You'll need to change the link to this:
<a href="http://www.ncma.org.uk" target="_blank">
altis is offline   Reply With Quote
Old 25-10-2004, 23:00   #4
punky
Inactive
 
Join Date: Jun 2003
Age: 44
Posts: 14,750
punky has a golden aurapunky has a golden aura
punky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aurapunky has a golden aura
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
punky is offline   Reply With Quote
Old 25-10-2004, 23:05   #5
Paul
Dr Pepper Addict
Cable Forum Admin
 
Paul's Avatar
 
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: IDNet FTTP (1000M), Sky Q TV, Sky Mobile, Flextel SIP
Posts: 30,360
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
Paul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered starsPaul is seeing silvered stars
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.
__________________

Baby, I was born this way.
Paul is offline   Reply With Quote
Old 25-10-2004, 23:13   #6
Womble
cf.geek
 
Womble's Avatar
 
Join Date: Jul 2003
Location: In A Politically Correct Hell!! Viva La Revolution
Age: 58
Services: 1gig Broadband
Posts: 864
Womble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of QuadsWomble has a fine set of Quads
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!!
Womble is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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