JavaScript-program 1

How to use JavaScript?

In the introductory post of JavaScript language, I write about
how to write the JavaScript language. Here is an elaborated part
of that post.

<html>

<head>

<title>JavaScript</title>

</head>

<body>

<Script Language="JavaScript">

document.write("Welcome to Java World")

</Script>

</body>

</html>

  • Explanation

  1. <Script Language="JavaScript"> is used for creating JavaScript
    environment. Actually it is the start of JavaScript lanuage

  2. document.write("Welcome to Java World")
    document.write is used for writing anything with JavaScript.
    The syntax isdocument.write("......."). Write anything within the brackets.

  3. There is another syntax that is used to write in JavaScript. This is

    document.writeln("......."). (writeln is for write line)

  4. </Script> is used to close the JavaScript

Posted in Labels: |

0 comments:

My Google Pagerank

Followers

Recent Activities

  © 2009; webmaster: MAKE MONEY ONLINE

Back to TOP