What is javascript?
10 Apr 2014, 11:23 AM
JavaScript is the most popular programming language that is most commonly used for client-side web development. It is a scripting language and lightweight programming language. It is easy to learn and it provides easy way to get, delete, copy HTML elements. Here is the example of the JavaScript
<div id="divHello"></div> <script type="text/javascript"> var item = document.getElementById("divHello"); item.innerHTML = "Hello World!"; </script>
Add the following code in the HTML page and write the javascript code inside the script tag <script type="text/javascript">