473,386 Members | 1,785 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,386 software developers and data experts.

target="_blank" with xHTML

Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?

I will use it with xHTML and CSS ... but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why? Is there no "same
effect"-Tag in xHTML?

Thx for answers!
Jul 20 '05 #1
16 3579
St. Rechsteiner wrote:
Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.
Matthias

Jul 20 '05 #2
sc****@macprime.ch (St. Rechsteiner) wrote:
target="_blank"
Stop trying to mess with a user's UI.
Tag


Attribute

--
Spartanicus
Jul 20 '05 #3
On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:
St. Rechsteiner wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.


You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
misspelled "don't".

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Jul 20 '05 #4
In article <89**************************@posting.google.com >,
sc****@macprime.ch (St. Rechsteiner) wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?
Attribute. It is allowed in XHTML1.0 Transitional. Author that if you
cannot let go of this 'demon from the old world'. Others will undoubtly
state why it is what it is.
I will use it with xHTML and CSS ...
If you 'will', then there is not much sense trying to convert you, sadly.
but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why? Is there no "same
effect"-Tag in xHTML?


There are no effect tags in HTML. They were deprecated when the Flash
standard came out.

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #5
sc****@macprime.ch (St. Rechsteiner) wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
It's an attribute, not a tag.
in HTML 4.01?
The same way you do in HTML 4.01.

XHTML 1.0 and HTML 4.01 are identical - in both of them the target
attribute exists only in the Transitional forms.

So I'm guessing that you're jumping from HTML 4.01 Transitional to
XHTML 1.0 Strict. Any reason why?
I will use it with xHTML and CSS ... but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why?


Same reason that it's not in HTML 4.01 - anything to do with opening
new windows or frames is against the spirit of the Strict versions of
(X)HTML.

So in order of preference:
1. Stop trying to force a new window on your users, if they want a new
window they can open one themselves
2. Use a Transitional DTD instead
3. Use JavaScript

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 #6
"St. Rechsteiner" <sc****@macprime.ch> wrote in message
news:89**************************@posting.google.c om...
Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


Why? You wanna create a site that confuses your visitors?

From a usability study by Stanford University - "Users became reliably
confused when links opened new windows"
--

Karl Groves
http://www.karlcore.com
Jul 20 '05 #7
Owen Jacobson wrote:
On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:

St. Rechsteiner wrote:
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?


You don't. Use HTML4.01 if you need _blank.

You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
misspelled "don't".


Err, nope, I didn't misspell anything. I just didn't quite think it through.
Matthias

Jul 20 '05 #8
On Tue, 24 Feb 2004, Spartanicus wrote:
sc****@macprime.ch (St. Rechsteiner) wrote:
target="_blank"


Stop trying to mess with a user's UI.
Tag


Attribute


http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.

Jul 20 '05 #9
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote:
>Tag


Attribute


http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.


:)

--
Spartanicus
Jul 20 '05 #10
Karl Core wrote:
"St. Rechsteiner" ... ....
How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?

.... Why? You wanna create a site that confuses your visitors?

From a usability study by Stanford University - "Users became reliably
confused when links opened new windows"


You got a link for that Karl?

I got curious after hearing it for the umpteenth
time and went searching. I found this..
http://www-nlp.stanford.edu/~manning...h-allc2000.doc

While this document mentions useability
and (separately) 'Windows' and 'confuse',
it does not have that exact quote, or
anything I could see that might mean the
same..

( I am in the process of stripping frames and
other such usability barriers from my sites, it
would just be nice to be able to point to a
study that actually supports the expenditure
of effort. And to point others to. )

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Jul 20 '05 #11
On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
wrote:
sc****@macprime.ch (St. Rechsteiner) wrote:
target="_blank"


Stop trying to mess with a user's UI.


To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to destroy
the original form, while using the help.

--
Martin
Jul 20 '05 #12
Martin Doering <do******@gmx.de> wrote:
target="_blank"


Stop trying to mess with a user's UI.


To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to destroy
the original form, while using the help.


1) It's not about what you want, or what you think a user wants, users
are perfectly capable of making these decisions themselves. Opening new
windows is part of the browser's UI, it's not for authors to attempt to
mess with a UA's UI.
2) target="_blank" does not open a popup (typically smaller than the
original window) that appears on top of the existing window, it opens a
new window that usually will cover the original window completely.

--
Spartanicus
Jul 20 '05 #13
Quoth the raven named Martin Doering:
On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
wrote:
sc****@macprime.ch (St. Rechsteiner) wrote:
target="_blank"


Stop trying to mess with a user's UI.


To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to
destroy the original form, while using the help.


The main problem with opening new windows occurs with visitors who
have small monitors and low resolution who tend to surf with the
browser maximized.

Your new window will completely overlay the original window containing
the form. It will also not have a functioning Back button. The
visitor doesn't realize there is a new window, and can't see the
original. So... they will probably just type some other URL, or go
back to their search engine. They will probably only discover your
original window when they decide to end their surfing session.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #14
DU
Martin Doering wrote:
On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
wrote:

sc****@macprime.ch (St. Rechsteiner) wrote:

target="_blank"


Stop trying to mess with a user's UI.

To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to destroy
the original form, while using the help.

--
Martin


Then at the very least follow the WAI recommendations on this by coding
the title attribute and by adding an icon clearly notifying the user
that clicking the link will open the referenced resource in a new,
separate window.
Don't interfere with users who will want to open such referenced
resource in a tab or in the same window. Let the users be in control of
the way such link can open the referenced resource. Users already have
all the settings, prefs, contextmenu commands to do such choice.

You can propose a scenario (open in a new window, reusable or not,
recyclable or not) but you should not force it by interfering with other
possible ways which may better fit the user.

DU
Jul 20 '05 #15
DU
Spartanicus wrote:
Martin Doering <do******@gmx.de> wrote:

target="_blank"

Stop trying to mess with a user's UI.
To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to destroy
the original form, while using the help.

1) It's not about what you want, or what you think a user wants, users
are perfectly capable of making these decisions themselves. Opening new
windows is part of the browser's UI, it's not for authors to attempt to
mess with a UA's UI.


You can still code the opening of a new window, then make it clear to
the user that clicking the link will open a new window (or it will
re-use an already opened popup). From there, the user can still choose
to open the referenced resource in the same window or in a tab (in the
background or not) or even in an unnamed (un-reusable, un-recyclable)
separate window (in the background or not). I'm for an approach that
informs in advance the user of a proposed scenario for a link and an
approach that does not interfere with his UI prefs/contextmenu commands.
2) target="_blank" does not open a popup (typically smaller than the
original window) that appears on top of the existing window,
A popup (opened with window.open())is not typically smaller than the
original window. A popup can be any size actually.

it opens a new window that usually will cover the original window completely.


Usually, yes. In fact, a secondary window opened thanks to
target="_blank" will be the same size as its parent/opener; its position
will be offset 15 pixels to its bottom and 15 pixels to its right so
that when it pops up, the user has better chances to notice its creation.
So, usually, yes because users with small, medium scr. size will have
their browser window maximized.
When the user has his window (parent/opener) maximized, then there is
less chances, opportunities to notice that a new separate window was
created since it can not be offset toward the bottom and the right side.

DU
Jul 20 '05 #16
On Tue, 24 Feb 2004, Martin Doering wrote:
To open a second window can be of much use.


I often find it useful, indeed. But rarely on the same occasions that
the web page author decided that I should want it.

Jul 20 '05 #17

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

Similar topics

9
by: Sugapablo | last post by:
I admit, I'm terrible creating reg ex's. I'm trying to create a preg_replace that would remove from a <a href> tag that would replace the target attribute regardless of what the value might be....
12
by: Romain | last post by:
Hi, I've used an excellent way to make target="_blank" links that still validate while using HTML 4.01 Transitional doctypes in the past. I learned the trick from :...
6
by: Tony Marston | last post by:
The code <a href="..." target="_blank">...</a> will not validate as XHTML STRICT because of the 'target' tag, so how do I achieve the same result by moving it to a CSS file? I cannot find anything...
2
by: Matt | last post by:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open a new window called page2.asp. When the user...
8
by: msnews.microsoft.com | last post by:
I want to redirect the user to a url outside of our website but I want it to preserve our application's window by opening a new window. We have a datagrid that has five hyperlink columns containing...
5
by: Jon via DotNetMonster.com | last post by:
<siteMapNode title="share price" description="Link to Netcall on the London Stock Exchange" url="http://www.yahoo.co.uk" role="" target="_blank" /> Hi all I'm trying to open the Yahoo web...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.