JavaScript is a Scripting Language
A scripting language is a lightweight
programming language.
JavaScript is programming code that can be
inserted into HTML pages.
JavaScript inserted into HTML pages, can be
executed by all modern web browsers....!!
for example this is small piece of instruction which will popup a message using button:
<!DOCtype html>
<html>
<body>
<p>
JavaScript can write directly into the HTML output stream:
</p>
<script>
document.write("<h1>This is a heading</h1>");
document.write("<p>This is a paragraph.</p>");
</script>
<p>
JavaScript can react to events. Like the click of a button:
</p>
<button type="button" onclick="alert('Welcome!')">Click Me!</button>
</body>
</html>
No comments:
Post a Comment