 |
 |
Alternative to target in XHTML 1.0 strict
|
 |
|
 |
|
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status:
Offline
|
|
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
|
|
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
|
|
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!
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
am i missing something here? anybody?
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|