- From: Benjamin Franz <snowhare@netimages.com>
- Date: Mon, 18 Aug 1997 04:54:20 -0700 (PDT)
- To: www-html@w3.org
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
Received on Monday, 18 August 1997 07:54:23 UTC