Lecture-Course Introduction
Lecture-Course Introduction
Course Introduction
CS E 2 0 3 0
▪ Describe Model View and Controller (MVC) architecture in Java Server Pages
(JSP)
▪ Website
▪ a collection of related pages
▪ are accessed through the Internet by addressed called Uniform Resource Locators (URLs)
▪ Web server
▪ web pages and websites can be stored on a web server on the Internet
▪ Web browser
▪ a program that displays the web pages it retrieves
▪ Web server
▪ A web server is a software component that delivers static data like images,
files, and text in response to client requests.
▪ Application Server
▪ External JavaScript: The other way is to write JavaScript code in another file having a
.js extension and then link the file inside the <head> or <body> tag of the HTML file in
which we want to add this code.
<script type=“text/javascript” src=“example.js”> </script>
II-Semester 2023-2024 Myanmar Institute of information technology
Features of JavaScript
▪ JavaScript is not Java. They are completely different
languages and serve entirely different purposes.
▪ Dynamic Typing
▪ Platform Independent
<html>
<head>
<script>
function speak() {
alert('Hello')
}
</script>
</head>
<body>
<button onclick="speak()">Click Me</button>
</body>
</html>
<head>
<title>Javascript External Script</title>
<script src = "/html/script.js" type = text/javascript"/></script>
</head>
<body>
<input type = "button" onclick = "Hello();" name = "ok" value = "Click Me" />
</body>
</html>
function Hello() {
script.js alert("Hello, World"); External .js file
}
▪ JavaScript Editors:
▪ Notepad++
▪ Visual Studio Code (https://code.visualstudio.com/download)
▪ Web Browsers:
▪ Google Chrome
▪ Mozilla Firefox
▪ Java IDEs:
▪ Eclipse