G
Gérard Talbot
Sam wrote :
Do you really need to have an XHTML 1.1 document? What's wrong with HTML
4.01 strict?
The following
General rule is to avoid resorting to opening new windows. But, if after
careful assessment, you really think it's best, then follow usability
guidelines (Nielsen, WCAG, WAI) here:
DOM:window.open
Usability issues:
http://developer.mozilla.org/en/docs/DOM:window.open#Usability_issues
and also use the examples and best recommendable practices as provided
in that document.
Never use this form of code for links:
<a href="javascript:window.open(...)" ...>
http://developer.mozilla.org/en/doc...D.22javascript:window.open.28....29.22_....3E
But again, I want to stress that the safe, sound alternative of not
opening new windows is almost always better.
Gérard
Hi All,
I am trying to open a new window from a XHTML 1.1 document.
Do you really need to have an XHTML 1.1 document? What's wrong with HTML
4.01 strict?
The following
code works but I am not happy with having to put the current page name as a
literal. Change the page filename, change all literal references to it.
<a href="javascript:location='current page';
window.open('http://newurl')">Link</a>
General rule is to avoid resorting to opening new windows. But, if after
careful assessment, you really think it's best, then follow usability
guidelines (Nielsen, WCAG, WAI) here:
DOM:window.open
Usability issues:
http://developer.mozilla.org/en/docs/DOM:window.open#Usability_issues
and also use the examples and best recommendable practices as provided
in that document.
Never use this form of code for links:
<a href="javascript:window.open(...)" ...>
http://developer.mozilla.org/en/doc...D.22javascript:window.open.28....29.22_....3E
But again, I want to stress that the safe, sound alternative of not
opening new windows is almost always better.
Gérard