This tutorial is to basically show you how to output text to the browser using javascript
Example:
<script type="text/javascript"> - This means that anything enclosed in this is javascript codeCode:<script type="text/javascript"> document.write("Hello World"); </script>
document.write("Hello World"); - Document is an object that refers the the web page. write is a method that means you want to write to the object. Whatever is defined in the parenthesis means that you want to write that to the object.
</script> - this just tells the web page that you are done defining you javascript code.
You could also do
Code:alert("Hello World");
Interesting.
Maybe you could write a tutorial about using the document object? How about what the different methods in the document object do?
Thats your way of saying it sucked?
its not bad
keep posting tutorials
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
www.amrosama.com | the unholy methods of javascriptCode:eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
Not at all, I was giving you constructive criticism.Can't wait to see more from you.
![]()
The thing is, a lot of us here are experienced coders. This script is the most basic one I have ever seen - not to say that is necessarily a bad thing, but for many people this tutorial is stating the obvious.
Next time go for something more involved.![]()
How about giving more detail on the document object?![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks