473,805 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
16 3621
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****@macprim e.ch (St. Rechsteiner) wrote:
target="_blan k"


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.d e> wrote:
target="_bla nk"


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****@macpri me.ch (St. Rechsteiner) wrote:

target="_bla nk"


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.d e> wrote:

target="_bl ank"

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())i s 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
7688
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. Any ideas? --
12
3322
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 : http://www.sitepoint.com/article/1041 Basically, instead of typing : <a href="yourlink.html" target="_blank" alt="">The link</a>
6
77512
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 which allows me to specify 'target=' on an anchor tag. -- Tony Marston http://www.tonymarston.net
2
2847
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 clicks submit button on page2.asp, I expected to open a new window called page3.asp. Unfortunately, it just open page3.asp in the same window as page2.asp, and now page2.asp is gone. However, if I just open page1.asp, and begins from there, it is...
8
3863
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 links to external sites. The hyperlink columns have the target="_blank" attribute so they preserve the existing window. This works OK except that the NavigateURL's are quite long due to the size of the query string and this makes the page slow. ...
5
3992
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 site in a new window using the above code in my asp.net web.sitemap. I'm expecting the target="_blank" bit to make it do this. but it isnt. Does anyone know why?? Thanks in advance.
0
9596
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10614
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10369
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.