Java Script Class 1
Java Script Class 1
<Script>
This tag is used to include script programs in the html document. The
‘Language’ attribute is used to specify the name of the scripting language.
A script program can be written inside ‘head section’ or ‘body section’. An
html document can contain any number of script programs.
Eg: <html>
<head>
<title> JavaScript- Welcome</title>
</head>
<body>
<script language= “JavaScript”>
document.write (“Welcome to JavaScript”);
</script>
</body>
</html>
JavaScript Engine
This is a virtual machine used by the browser for executing JavaScript code.
Every web browser will have a JavaScript engine. The JavaScript code is interpreted
at run time by the JavaScript engine.
If JavaScript is disabled in a web browser, it will not execute the script code.
Browser will simply ignore the script code and we will not get the webpage intact.