PDA

View Full Version : Javascript - Starting Off: Lesson 1



Moofhead
02-18-2008, 08:30 PM
Lesson 1 section has... Begun :)

As you know that html starts as <html> javascript is more different! Actually, it is in HTML but to script the language so you can start it is this following code

<script type="text/javascript">
document.write("Moofhead is fat");
</script>

You start with the <script type="text/javascript"> and then you end it with </script>

You are probably thinking - "What does that code do?" Well it just writes "Moofhead is fat" as the text. In HTML, it is simple as
<html>Moofhead is fat</html>

Ever wonder why sometimes an internet doesn't have javascript? Well theres a solution to it that Moofhead found! (I did not make, I found) All you do is add some arrows to it. Here is an example.

<script type="text/javascript">
<!--
document.write("Moofhead is fat");
//-->
</script>

These arrows will "hide" the javascript content and basicly what I call a magic trick. xD

Lesson 1 section has ended. :cool:

Pu!nK
03-23-2008, 02:52 PM
WE WANT MORE !!fgt77

Hammer
03-29-2008, 01:47 PM
Maybe the easyest to understand tutorial ever!
Good tut and it isnt hard at all.

Moofhead isnt fat, Moofhead rulez! fgt70

miraclearts
08-08-2009, 10:07 AM
Java is Different from Javascript... right?

do you have any introduction about Java?