How to Add JAVA SCRIPT to HTML
Today i came with short tutorial to teach you how to Add JAVA SCRIPT to HTML
First of all, when you write java script, you always need to write following command phase at the HEAD section in HTML.
<script type= "text/javascript">
Also, if you write javascript file separate, (not in the header section) you need to add ".js" as extension of your javascript file.
So, lets try to write simple javascript HTML.
<html>
<head>
<script type = "text/javascript">
document.write("Hello World");
</script>
</head>
<body>
</body>
</html>
save this as my1st.html and run.