To make java script program you need Text editor and a web browser. You can use Note Pad, word pad or advanced web editor like Komodo IDE. Visual Studio, Dreamweaver etc.
To use java script in HTML we have html tag <script type=”javascript”></script>. We can also use external script in HTML page by tag <script type=”javascript” src=”file path” >.
First Script through Java Script (How to use document.write()):
<script language="javascript">
document.write("<h1>HELLO WORLD</h1><h2>JAVA SCRIPT</h3><h2>SCRIPT LANGUAGE</h3><h4>BY AJEET</h4>");
</script>
No comments:
Post a Comment