Re: FORM element requires ACTION attribute: problems with compatibility

Benjamin Franz (snowhare@netimages.com)
Mon, 18 Aug 1997 04:54:20 -0700 (PDT)


Date: Mon, 18 Aug 1997 04:54:20 -0700 (PDT)
From: Benjamin Franz <snowhare@netimages.com>
To: www-html@w3.org
In-Reply-To: <3.0.3.32.19970818012730.008bf5f0@undergrad.math.uwaterloo.ca>
Message-ID: <Pine.LNX.3.96.970818044926.21336C-100000@ns.viet.net>
Subject: Re: FORM element requires ACTION attribute: problems with      compatibility

On Mon, 18 Aug 1997, Liam Quinn wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> At 12:44 AM 18/08/97 -0400, Jordan Reiter wrote:
> No, JavaScript-enabled browsers will generate a JavaScript error since 
> "<P>Since..." is not syntactically valid JavaScript.  What you could do is
> 
> <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
>   <!--
>     document.write ('<INPUT TYPE="BUTTON" VALUE="Click Me" 
> onClick="ButtonHandler()">');
>   //-->
> <!-- --> <P>Since your browser is not script-enabled, please use the
> <!-- --> <A HREF="nobutton.html">alternative document</A>.
> </SCRIPT>
> 
> but this is actually worse than SCRIPT + NOSCRIPT since only HTML 2.0 
> browsers, unaware of the SCRIPT element, would render the HTML.  It's also 
> a gross hack.

What is wrong with:

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
     document.write ('<INPUT TYPE="BUTTON" VALUE="Click Me"
  onClick="ButtonHandler()">');
// -->
</SCRIPT>
<NOSCRIPT>
<P>Since your browser is not script-enabled, please use the
<A HREF="nobutton.html">alternative document</A>.
</NOSCRIPT>

?

-- 
Benjamin Franz