On Fri, Sep 08, 2006 at 09:11:29AM -0400, Mike at Green-Beast.com wrote:
> <script type="text/javascript">
> //<![CDATA[
> document.write("<p><a
> href=\"javascript:history.go(-1)\">Return</a></p>");
This has the issue that the user will get a "Return" link even if
there is nowhere to return to (e.g. if the opened the link in a new
tab).
I prefer to let users use the back button since (a) They should
already know how to, (b) it comes with built in indicators that show
when it won't work and (c) it doesn't take up space I could be using
for content.
> My method here does have a flaw thought in that document.write is deprecated
> in the XHTML 1.1 spec I think.
document.write is, IIRC, not documented in any standard. XHTML
specifications certainly don't deprecated it (since it isn't part of
(X)HTML), however AFAIK there is no browser actually supports it in
XHTML documents (including 1.0 documents).
Note that for the purposes of this discussion, a document that
conforms to an XHTML DTD but is served as text/html is considered "tag
soup" and not "XHTML" since that is how parsers will handle it.
--
David Dorward http://dorward.me.uk
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************