![]() |
Hello in JavaScript
Can anyone give me a "Hello Earth!" in JS?
|
:
<script language="JavaScript" type="text/JavaScript"> |
Remember that document.write doesn't work in XHTML though - don't ask me why.
|
Quote:
Now let's bring in a little of Peter Schilling's Major Tom song! |
Oooh... just noticed an error. Not an important one, but an error all the same. In the type attribute (not the language attribute) of the <script> tag, "JavaScript" should be in lowercase.
|
Quote:
:
document.write = function(str) { document.outerHTML += str; }Btw the language attribute of script is deprecated, to keep up with standards use... :
<script type="text/Javascript"> |
| All times are GMT -5. The time now is 5:38 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC