Java Script is a scripting language that enables web developers/designers to build more functional and interactive websites.
A scripting language is a lightweight programming language.
Common uses of Java Script include:
- Alert messages
- Popup windows
- Dynamic dropdown menus
- Form validation
- Displaying date/time
The <script> Tag :
To insert a JavaScript into an HTML page, use the <script> tag.The <script> and </script> tells where the JavaScript starts and ends.
Example :
<script type="text/javascript">
document.write("Welcome to JavaScript");
</script>
<script>
alert("Hi welcome to Java script world");
</script>
No comments:
Post a Comment