Presentation Title
Your company information
Java Script
An interpreted object-oriented computer programming
language commonly used to create interactive effects
within web browsers.
It is embedded into HTML
Interpreted language is being executed without compiling
Interactive Effects
It is used to manipulate or move text to make it Dynamic
It performs the mathematical actions on data.
It reacts to events
Automatically change a formatted date on a Web page
Cause a linked-to page to appear in a popup window
Cause text or a graphic image to change during a mouse hover
Validation of Data
With HTML we can only see the interface.
With CSS we can see the styling and can’t interact in both
JS is used for interaction of user with website to get response.
In HTML after submitting form we get no response why?
has the user filled in all required fields?
has the user entered a valid date?
has the user entered text in a numeric field?
Validation of Data
Because HTML does not create interaction of user with Data Base.
Java Script is used to create a useful interaction.
<html>
</html>
<head>
<body>
<script>
</body>
</script>
</head>
document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology")
Where can we use script tag
1: In the body section
<html>
</html>
<body>
<script>
</body>
</script>
document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology")
Where can we use script tag
2: In the Head section
<html>
</html>
<body>
<script>
</body>
</script>
document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology")
<head>
</head>
Where can we use script tag
External JavaScript
<html>
<head>
<script src="external.js"></script>
</head>
<body></body>
</html>
document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology") .js
.html
External JavaScript Advantages
Placing JavaScript's in external files has some advantages:
•It separates HTML and code
•It makes HTML and JavaScript easier to read and
maintain
•Cached JavaScript files can speed up page loads
•If identical code is used on several pages of a website, external
JavaScript files are beneficial.
Java script
Java script
Java script
Java script
Java script
Java script

Java script

  • 1.
  • 2.
    Java Script An interpretedobject-oriented computer programming language commonly used to create interactive effects within web browsers. It is embedded into HTML Interpreted language is being executed without compiling
  • 3.
    Interactive Effects It isused to manipulate or move text to make it Dynamic It performs the mathematical actions on data. It reacts to events Automatically change a formatted date on a Web page Cause a linked-to page to appear in a popup window Cause text or a graphic image to change during a mouse hover
  • 4.
    Validation of Data WithHTML we can only see the interface. With CSS we can see the styling and can’t interact in both JS is used for interaction of user with website to get response.
  • 5.
    In HTML aftersubmitting form we get no response why? has the user filled in all required fields? has the user entered a valid date? has the user entered text in a numeric field? Validation of Data Because HTML does not create interaction of user with Data Base. Java Script is used to create a useful interaction.
  • 6.
  • 7.
    Where can weuse script tag 1: In the body section <html> </html> <body> <script> </body> </script> document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology")
  • 8.
    Where can weuse script tag 2: In the Head section <html> </html> <body> <script> </body> </script> document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology") <head> </head>
  • 9.
    Where can weuse script tag External JavaScript <html> <head> <script src="external.js"></script> </head> <body></body> </html> document.write("hi!<br> I am Ahmad Yaqoob <br> I love Astronology") .js .html
  • 10.
    External JavaScript Advantages PlacingJavaScript's in external files has some advantages: •It separates HTML and code •It makes HTML and JavaScript easier to read and maintain •Cached JavaScript files can speed up page loads •If identical code is used on several pages of a website, external JavaScript files are beneficial.