Lets get started. First make a new text document and save it as something.html.
Then type in the start out or what its called and the <script> tags <script type="text/javascript"> just means we are working with javascript
<html>
<head>
</head>
<body>
<script type="text/javascript">
</script>
</body>
</html>
______________________________________
Now I will speak to you about document.write(); its placed inside the <script> tag
document.write("if you have these things in it then this will be placed on the screen");
if you will show a variable then its document.write(x);
if both its document.write(x+" apples and im "+x+" years old");
______________________________________
Well you can´t use variables if you dont know how they work so first of all to make a variable
its simple just: var variableName = a number;
or: var variableName = a String; a string is a piece of text and the way to tell that its a
string is "I'm a string."
Find me on thorulf@live.dk and I'll answer as good as I can
Ingen kommentarer:
Send en kommentar