Javascript: Mobile
Javascript: Mobile
Introduction
Application of JavaScript
o Client-side validation,
o Dynamic drop-down menus,
o Displaying date and time,
o Displaying pop-up windows and dialog boxes (like an alert dialog
box, confirm dialog box and prompt dialog box),
o Displaying clocks etc
Web Development
Web Applications
Presentations
Server Applications
Web Servers
Games
Art
Smartwatch Applications
Mobile Applications
Flying Robots
Advantages of JavaScript :
Fast to the end user: Java scripting is written for client-side, it does
not need the web server's support for execution. It also has no need
to be compiled on the client side which gives it certain speed
advantages. As the script is executed on the user’s computer,
depending on task, the results are completed almost instantly. For
example, you can validate any user input before sending a request
to the server. This makes less load on the server.
Disadvantages of JavaScript :
<html>
<head>
<title>My First JavaScript code!!!</title>
<script type="text/javascript">
alert("Welcome to CSE Department");
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function msg(){
alert("Hello Student");
}
</script>
</head>
<body>
<p>Welcome to BKEC</p>
<form>
<input type="button" value="click" onclick="msg()"/>
</form>
</body>
</html>