473,387 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Style sheet specs of link opening behaviour (was: Validation: No attribute TARGET)

David Dorward <do*****@yahoo.com> wrote in message news:<bd*******************@news.demon.co.uk>...
Jan T. Kim wrote:
I don't understand why I get this message. According to the HTML 4.01
strict specification, there is a "target" attribute to the "a" element.
No it doesn't. Target is strictly for Frameset and Transitional.


Ok, thanks for pointing this out, it seems I haven't taken enough time to
look into the specs for the target attribute in sufficient detail.
Let your visitors decide when they want a new window:
http://diveintoaccessibility.org/day...w_windows.html


I've thought of this myself, but I would still like to indicate that I'd
rather open this link in a new window. So, I looked for a style sheet way
to specify this, but to no avail. Any pointers on this idea?

Greetinx, Jan
Jul 20 '05 #1
2 3348
jt***@web.de (Jan T. Kim) wrote:
David Dorward <do*****@yahoo.com> wrote in message news:<bd*******************@news.demon.co.uk>...
Let your visitors decide when they want a new window:
http://diveintoaccessibility.org/day...w_windows.html
I've thought of this myself, but I would still like to indicate that I'd
rather open this link in a new window.


<a title="I'd like you to open this link in new window"
href="foo">link</a>
So, I looked for a style sheet way to specify this, but to no avail. Any pointers on this idea?


CSS can be used to indicate that link is different (e.g. that you'd
like it to be opened in a new window) by changing colours, etc. As
some popular browsers don't support attribute selectors you're best
bet is to set a class on all those links. More advanced browsers
support generated content and would allow you to place a small icon
before or after every such link.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
In article <d7**************************@posting.google.com > in
comp.infosystems.www.authoring.html, Jan T. Kim <jt***@web.de>
wrote:

[about opening links in a separate window whether the user wants to
or not]
I've thought of this myself, but I would still like to indicate that I'd
rather open this link in a new window. So, I looked for a style sheet way
to specify this, but to no avail.


This isn't really a CSS kind of issue. CSS is about presentation:
layout, type face and size, that kind of thing. It's not about
taking actions.

What you _can_ do is suggest in your text that users open the link
in another window. Or you can make the link be Javascript, which
means that JS users will (probably) see it in a separate window but
it will be unavailable to the rest of us. Or you can relax and
accept the fact that users are better at figuring out their
individual preferences than authors are.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Display Name | last post by:
When this form's being submitted, two windows are opening instead of only one here is the function I'm using: function subForm(){ //insert form validation here //if form is valid, open a...
8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
7
by: Bura Tino | last post by:
Hi, Going forward, what's better to use <td height="20"> or <td style="height:20;">
36
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
1
by: blue | last post by:
My app draws a bunch of tables on the page and has a form for the user to enter data and submit. The form is contained within a User Control called DecisionCtl. When they submit the form, a bunch...
2
by: Hallvard B Furuseth | last post by:
Are there any guidelines or conventions for how to organize the preferred and alternate style sheets for a site, sheets for different media, and what titles to give them in the <link...
4
by: news.internode.on.net | last post by:
Is there any way that a STYLE attribute can be used to control the color of hyperlinks. We have a tabular output generator written in C#. Each column of the table is defined by a column, and...
2
by: mjansen.merge.emed | last post by:
Is there a way to override inline within the <bodya style of an element but not do it with a style attribute on the element? I know CSS Inheritance works for some styles, but doesn't appear to...
4
by: yawnmoth | last post by:
Say I wanted to make a link change colors when someone was hovering over it. Ordinarily, I could do that by doing something like... <style> a { color: whatever; } a:hover { color:whatever;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.