10-08-2009, 11:19 PM
ex:1
<html>
<body>
<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>
</body>
</html>
u must be aware of HTML / XHTML
to learn javascript
<html>
<body>
<script type="text/javascript">
...
</script>
</body>
</html>
now in this example
let's take a view
the <html> tag is used to start the webpage and similarly </html> is used to close the html page ...now the <body>section defines the body of the webpage and similarly </body> is defined to close the webpage
now the script tag tell the starting the javascript tag...
now where [...] is written here u can write any line
the command used for printing a kine is "document.write(any text)"
this command will write the line u have written in the braces...
for today it is over part 2 will be decided accorind to the popularity of part 1
<html>
<body>
<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>
</body>
</html>
u must be aware of HTML / XHTML
to learn javascript
<html>
<body>
<script type="text/javascript">
...
</script>
</body>
</html>
now in this example
let's take a view
the <html> tag is used to start the webpage and similarly </html> is used to close the html page ...now the <body>section defines the body of the webpage and similarly </body> is defined to close the webpage
now the script tag tell the starting the javascript tag...
now where [...] is written here u can write any line
the command used for printing a kine is "document.write(any text)"
this command will write the line u have written in the braces...
for today it is over part 2 will be decided accorind to the popularity of part 1
:superman: