Imrokraft Solutions Pvt Ltd provides top training in Web Designing in trivandrum, advanced training in web development in trivandrum, the best android in center in trivandrum, advanced android training in trivandrum, python training in kerala, php training institute in trivandrum, java training center in trivandrum, java training in technopark. We offer free workshop on android application development, free workshop in software testing, free workshop on responsive web designing, free workshop on php. We have centers in Technopark and Thampanoor. Website : http://imrokraft.com.
Our contact No: 04716555644, 0471 6555744
2. INTRODUCTION
• Java script is a scripting language mostly used
in Client-side web
• Java script is an implementation of ECMA
standard.
• ECMA means it defines the syntax and
commonly used object such as number and
code.
• J script is the MS version of Java script
4. MY FIRST JS PGM
<html>
<head><title>First JavaScript
Page</title></head>
<body>
<h1>First JavaScript Page</h1>
<script type="text/javascript">
document.write("<hr>");
document.write("Hello World Wide Web");
document.write("<hr>");
</script>
</body>
</html>
5. WHY I STUDY JS??
• To create user interface in web page
Ex: menu, pop-up alert, windows etc.
Manipulating web content dynamically
-Change the content and style of an element
-Replace images on a page without page reload
-Hide/Show contents
-FORM VALIDATION
6. alert(), confirm(), and
prompt()
<script type="text/javascript">
alert("This is an Alert method");
confirm("Are you OK?");
prompt("What is your name?");
prompt("How old are you?","20");
</script>
7. Event Handlers Triggered when
onChange The value of the text field, text area, or a drop down list
is modified
onClick A link, an image or a form element is clicked once
onDblClick The element is double-clicked
onMouseDown The user presses the mouse button
onLoad A document or an image is loaded
onSubmit A user submits a form
onReset The form is reset
onUnLoad The user closes a document or a frame
onResize A form is resized by the user
EVENT HANDLERS
9. ADVANTAGES
• Java script is executed on the client side
• Java script is comparatively a easy
language.
• Java script is relatively fast to end user.
• Extended functionality to web page.
10. DISADVANTAGES
Security issues
• JS code once appended to the webpage executes
on client servers immediately.
• Can also be used to explore the user system.
• Certain restriction is set by modern web
standards on browser
JS rendering Varies
• Different layout engines may render JS difficulty
result in inconsistency in terms of functionality
and interface.