NEPAL | ARTICLES | KAVITAHARU | MANTHAN | COOL LINKS | GUESTBOOK | SEARCH |
|||
JAVASCRIPT NEPAL KAVITAHARU ARTICLES COOL LINKS ADD EMAIL GUESTBOOK KURAKANI FREE E-CARDS FREE SITE SUBMIT
ABOUT ME |
| ||
Within a window the HTML-document is loaded which is called a document-object.
HTML-object could be a link, a form, and an image which are also the properties of a document-object. <script language="JavaScript"> <!-- hide from older browser document.write("How are you my friend?") //--> </script> In this example you will see the sentence-How are you my friend?- in your document(web page). another example <script language="JavaScript"> <!-- hide from older browser var test test=document.lastModified document.write("This page last modified:"+test) //--> </script> In this example you will see the sentence-This page is last modified:and the date it was modified in your web page because the code lastModified is a predefined object. document WRITELN(writes in new line) method <script language="JavaScript"> <!-- hide from older browser document.writeln("You are using browser:") document.writeln(navigator.appName+navigator.appVersion+"<BR>") //--> </script> If you click on Example, you will see the Name and Version of your browser.
|
|
Home
| About Me
| Nepal
| Articles
| Kavitaharu
| Cool Links
Javascript | Add Email | Guestbook |