Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Alternative to target in XHTML 1.0 strict

Alternative to target in XHTML 1.0 strict
Thread Tools
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status: Offline
Reply With Quote
Feb 13, 2004, 04:42 AM
 
Hello there,

I discovered that the target attribute for anchor tags is no longer allowed in XHTML 1.0 strict mode, so I wonder if there is an alternative attribute or something but unable to find a solution yet... Any ideas?
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Feb 13, 2004, 06:13 AM
 
Originally posted by eevyl:
Hello there,

I discovered that the target attribute for anchor tags is no longer allowed in XHTML 1.0 strict mode, so I wonder if there is an alternative attribute or something but unable to find a solution yet... Any ideas?
Why do you need XHTML 1.0 strict? You could easily use transitional and have the best of both worlds.
Computer thez nohhh...
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Feb 13, 2004, 09:35 AM
 
In a case like that, I'd use XHTML Transitional.

You could also use XHTML 1.1; they put target back into that version.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
eevyl  (op)
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status: Offline
Reply With Quote
Feb 13, 2004, 09:49 AM
 
Originally posted by Millennium:
In a case like that, I'd use XHTML Transitional.

You could also use XHTML 1.1; they put target back into that version.
Well it's not something I need so no reason to step back to transitional. I am just trying to move forward and coding a web from scratch under strict I thought it was a good way to learn it.

Well, I should try to move further and implement it as XHTML 1.1, so I can use target if it is really needed.
     
Forum Regular
Join Date: Feb 2004
Location: Manhattan
Status: Offline
Reply With Quote
Feb 13, 2004, 12:32 PM
 
There has to be some alternative. How would one use frames without target?
I saw a woman with a sweatshirt that said "Guess", so I said, "Implants?"
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Feb 13, 2004, 12:35 PM
 
Old code:

<a target="_blank" href="http://some_other_site.com">Some Other site</a>

XHTML Alternative:

<a onclick="window.open(this.href, '_blank'); return false;" href="http://some_oother_site.com">Some Other Site</a>
     
Forum Regular
Join Date: Feb 2004
Location: Manhattan
Status: Offline
Reply With Quote
Feb 13, 2004, 12:37 PM
 
So now you have to use JS to access a frame? Absurd!
I saw a woman with a sweatshirt that said "Guess", so I said, "Implants?"
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 13, 2004, 02:13 PM
 
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2