473,221 Members | 1,919 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,221 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 3336
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: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.