GetDotted Domains

Viewing Thread:
"target="_blank" in CSS...?"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Tue 22/03/05 at 18:55
Regular
"Peace Respect Punk"
Posts: 8,069
Well, after getting no replies to my previous CSS topic (I'm not bitter), I sorted it out with lots of messing about... But now I was wondering if there's any way to set a class (eg. a.external) that will open links of that class in a new window (target="_blank")...

Also, as I have a pretty large links page on my site, is there a way to make "_blank" the default for links on a specific page (either in HTML or CSS)???

Chars,
Sibs.
Tue 22/03/05 at 20:06
Regular
"l33t cs50r"
Posts: 2,956
Sibs wrote:
> ah, cheers to both of yous... shouldn't be too problematic, as most
> pages have predominantly internal links, but setting the default to
> _blank will be extremely handy for my links page, which is pretty
> massive... I won't have to remember to add the target when adding new
> links anymore. :-)

target="_blank" is depricated HTML. In basic form, it should be target="new", but again, this is being deprecated as the action of oopening a new window is being moved to JS and away from HTML.

Have a read through: [URL]http://www.sitepoint.com/article/standards-compliant-world[/URL]
Tue 22/03/05 at 19:42
Regular
"Peace Respect Punk"
Posts: 8,069
ah, cheers to both of yous... shouldn't be too problematic, as most pages have predominantly internal links, but setting the default to _blank will be extremely handy for my links page, which is pretty massive... I won't have to remember to add the target when adding new links anymore. :-)
Tue 22/03/05 at 18:58
Regular
Posts: 10,364
As far as I know that isn't possible.

As you already know, CSS stands for Cascading Style Sheet, you use your CSS for styling how your site looks.

HTML is the data side of things, so you'll just have to put your target="_blank"'s on links which you want.
Tue 22/03/05 at 18:58
Regular
"NULL"
Posts: 1,384
Stick this in your page in the section:



I'm not sure about a CSS method - Tyla would be a better person to answer that. I think I'm going to get Eric Meyer's (?) book on CSS and teach myself much much more.
Tue 22/03/05 at 18:55
Regular
"Peace Respect Punk"
Posts: 8,069
Well, after getting no replies to my previous CSS topic (I'm not bitter), I sorted it out with lots of messing about... But now I was wondering if there's any way to set a class (eg. a.external) that will open links of that class in a new window (target="_blank")...

Also, as I have a pretty large links page on my site, is there a way to make "_blank" the default for links on a specific page (either in HTML or CSS)???

Chars,
Sibs.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
Excellent support service!
I have always found the support staff to provide an excellent service on every occasion I've called.
Ben

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.