|
Post by aClubSandwich from windsor on Aug 30, 2009 5:46:04 GMT -5
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? 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
|
|
|
Post by Hauskaz on Aug 30, 2009 11:35:59 GMT -5
JavaScript and particularly Ajax can do some interesting things, but I've never really played with it.
|
|