473,804 Members | 3,894 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TARGET="_top" in strict HTML ?

Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.
How do I change the line to meet the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>

Arty

Jul 20 '05
19 11194
On Sun, 4 Jan 2004 14:40:41 +0100, ar***@redseven. com (Arthur Connor)
wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.


Use Transitional (or search this ng.)
Jul 20 '05 #11

"Andy Dingley" <di*****@codesm iths.com> wrote in message
news:v6******** *************** *********@4ax.c om...
On Sun, 4 Jan 2004 14:40:41 +0100, ar***@redseven. com (Arthur Connor)
wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not
allowed under strict XHTML.
Use Transitional (or search this ng.)


You know, it's funny. Four posts in a row posted to ciwah and ciwas.
Followups set to ciwas only.

If you're like me, you read ciwah first because it comes first
alphabetically. You see a post with no responses, you reply, not knowing
that umpteen others have also responded. Seems WAY too coincidental to me.
Plus, all 4 posts are on very basic stuff.

Should we be contacting Oliver Stone on this?
Jul 20 '05 #12
Arthur Connor wrote:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML.
How do I change the line to meet the requirements of strict HTML?

<A HREF="http://www.targetedoma in.com/" TARGET="_top">. ..</A>


In theory, this should never be a problem. In other words, if you use
frames, then you don't have the ideology of strict (HTML for structure,
CSS for styles, JS for interaction) and if you use strict, you wouldn't
want to ruin it with presentational relics like frames.

If you want to use "target" you should use Transitional. You can also
cheat with JS, but I wouldn't recommend it.

Jul 20 '05 #13
In article <ED************ ***@fe01.usenet server.com>, Keith Bowes
<do****@spam.me > wrote:
If you want to use "target" you should use Transitional. You can also
cheat with JS, but I wouldn't recommend it.


Well then, how should one handle the following hypothetical scenario:

Suppose you have a web site that is pushing data in real time, and you
want to have the browser window refresh periodically. Further suppose
that you have two sets of info that need to refresh at different rates.
For this, you want two browser windows that have been spawned from a
common source, with different meta-fresh values.

Without "target" or Javascript, how do you accomplish this
transparently?

--
Jim Royal
"Understand ing is a three-edged sword"
http://JimRoyal.com
Jul 20 '05 #14
In article <3f************ **********@news .rcn.com> in
comp.infosystem s.www.authoring.stylesheets, Neal wrote:
You know, it's funny. Four posts in a row posted to ciwah and ciwas.
Followups set to ciwas only.

If you're like me, you read ciwah first because it comes first
alphabetically . You see a post with no responses, you reply, not knowing
that umpteen others have also responded. Seems WAY too coincidental to me.


And the four posts are made with four different "From" names. Quite
a coincidence to see this happen four times in short order when I
can't remember it ever happening before.

I think we've been punked.

--
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/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #15

[f'ups suggested to a more appropriate group]

On Sun, 4 Jan 2004, Jim Royal wrote:
In article <ED************ ***@fe01.usenet server.com>, Keith Bowes
<do****@spam.me > wrote:
If you want to use "target" you should use Transitional. You can also
cheat with JS, but I wouldn't recommend it.
Well then, how should one handle the following hypothetical scenario:

Suppose you have a web site that is pushing data in real time, and you
want to have the browser window refresh periodically.


HTML Strict doesn't concern itself with such presentation details.
What's a "browser window" when the client agent is a brailler, a
summarising robot, etc. etc.?
Further suppose that you have two sets of info that need to refresh
at different rates. For this, you want two browser windows that have
been spawned from a common source, with different meta-fresh values.
HTML Strict doesn't concern itself with such presentation details.
Without "target" or Javascript, how do you accomplish this
transparently?


Perhaps you're wanting to have too much detailed control over
presentation. Not all client agents present their display using
windows.

But if you don't want what HTML Strict offers, why would you be trying
to use it?
Jul 20 '05 #16
In article <ED************ ***@fe01.usenet server.com>, one of infinite monkeys
at the keyboard of Keith Bowes <do****@spam.me > wrote:
You can also
cheat with JS, but I wouldn't recommend it.


I would very firmly recommend it as second-best to getting rid of the
need for target= altogether. You achieve the same effect for
bells-and-whistles viewers, while leaving users who might have trouble
with it more chance to take control.
--
Nick Kew
Jul 20 '05 #17

"Stan Brown" <th************ @fastmail.fm> wrote in message
news:MP******** *************** *@news.odyssey. net...
And the four posts are made with four different "From" names. Quite a coincidence to see this happen four times in short order when I can't remember it ever happening before.
Different emails too, but the same source in the path.
I think we've been punked.


Indeed.
Jul 20 '05 #18

"Nick Kew" <ni**@fenris.we bthing.com> wrote in message
news:ba******** ***@jarl.webthi ng.com...
In article <ED************ ***@fe01.usenet server.com>, one of infinite monkeys at the keyboard of Keith Bowes <do****@spam.me > wrote:
You can also
cheat with JS, but I wouldn't recommend it.
I would very firmly recommend it as second-best to getting rid

of the need for target= altogether. You achieve the same effect for
bells-and-whistles viewers, while leaving users who might have trouble with it more chance to take control.


You're still going to piss a lot of people off with popups. I
really can't think of a time they're needed aside from trying to
make a buck.
Jul 20 '05 #19

"Jim Dabell" <ji********@jim dabell.com> wrote in message
news:e9******** ************@gi ganews.com...
Neal wrote:
[snip]
You're still going to piss a lot of people off with popups. I
really can't think of a time they're needed aside from trying to make a buck.
I think a lot of people have missed something here:

target="_top" doesn't open a new window. It replaces the top frameset with the new document. Are you thinking of target="_blank" ?


Yes I was. Actually, target="_top" is useful, but allowing it
opens the door for all sorts of abuses and crimes. As it's
disallowed, then we have to educate the public that they can
right-click, open a new page, and trash that frames site. That
technique does away with the need for the target attribute
totally.

Except in framesets, which no right-thinking human likes anyhoo.
;)
Jul 20 '05 #20

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

Similar topics

2
2643
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the very bottom of this message. All I want to do is add a target="top" to the URL which is displayed as a link at the top of the results. I know enough about html to know that it probably goes somewhere into the follwing section: <a href=""" &...
8
6718
by: Dave | last post by:
Hello, I have written a website www.pusspaws.net, my problem is in the gallery section. I have coded ... <object type="text/html" data="galleryobj.html" border="0" width="422" height="325"></object><br> to make a scrolling window (Or is it a frame with an <object> tab ?),
3
868
by: Arthur Connor | last post by:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML? <A HREF="http://www.targetedomain.com/" TARGET="_top">...</A> Arty
4
7372
by: socialism001 | last post by:
I have the following code in my cgi script. How would I use target="_top" in the code below so that it would prevent my page from opening in a frame. Thanks, Chris ********************* my $url_1 = 'http://www.company.com/cgi-bin/company.cgi/_address?for_sale=&_act=query&_dbf=retailol.dbf&_tar=_ret_m&';
0
9589
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
10593
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
10340
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...
0
10085
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
9163
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
7626
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...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
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
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.