Talk:JavaScript/First Program
From Wikibooks, the open-content textbooks collection
The language attribute has been deprecated in favor of the type attribute. [1]
<SCRIPT language="JavaScript" type="text/javascript"> //no! remove
document.writeln("Hello World!");
</SCRIPT>
65.10.43.110 23:16, 1 May 2006 (UTC)
I recommend that we keep the case of the HTML all lowercase. Currently it is mixed (with
being lowercase while others are uppercase). I ask that we stick with all lowercase
[edit] please ditch document.write/document.writeln
It is deprecated. It won't work in XHTML.
Noobs will get used to it and have problems understanding that it won't work later in onclick, forms, etc.