Jump to content

Can't Use The Target Attribute In Xhtml


clgolden

Recommended Posts

I am just now figuring out that I can't use the target attribute in XHTML1.0 Strict. I'm really bummed (does that date me?). I've been coding in XHTML Strict because I'm thinking my beginning sites will display better in more browsers that way. Is that true or should I go to Transitional so I can keep the _blank targets?Thanks!Christine

Link to comment
Share on other sites

The correct way is to allow the user to choose whether they want a link to open in a new window or not. They choose by right-clicking and selecting "Open in a new window".It's valid to use the Javascript window.open() method for your links, however, you should provide an alternative just in case Javascript is disabled.

Link to comment
Share on other sites

you should provide an alternative just in case Javascript is disabled.
I agree.I made a website that automatically redirects.Just to be safe it's best to put a link. If javascript isn't enabled they'd never even know the differance!
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...