SlideShare a Scribd company logo
 
Programming Languages All have… Variables, data types, assignment Arithmetic, relational, and logical operators, and expressions Control structure: if-then, while, loops, iteration Program structure: functions, objects, methods Arrays and strings Input and Output
What is JavaScript? JavaScript is a programming/scripting language designed for the Web Javascript is interpreted not compiled JavaScript is not Java JavaScript provides interactivity for Web pages JavaScript may be embedded in HTML or referenced from HTML (like CSS) JavaScript is forgiving and easy to use
JavaScript is  Object-Oriented JavaScript uses objects that have  attributes  and  methods bgColor is an attribute of the document object document.bgColor=“#888888”; write is a method in  the document object document.write(“Hello Earl!”); The DOM (Document Object Model)
JavaScript is typically used to enhance a Web interface http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/examples/mouseover2.html http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/coolmenu/ http://javascript.internet.com/toc.html   http://sixrevisions.com/rapid-development/10_ajax_effects_website_fanciness/   Javascript is a key element in the popular  AJAX  programming methodology. Javascript code can reference Javascript libraries such as  jQuery .
JavaScript Embedded in HTML In the html <body>
JavaScript Embedded in HTML In the html <body> http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/doc_write.html
JavaScript Embedded in HTML In the html <head> http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/function.html
Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables.html
Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables2.html
HTML Forms Javascript can collect user input through HTML forms. http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_objects.html   http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/change_background.html   http://www.w3schools.com/html/html_forms.asp
Calling a function from a form http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder.html   http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder2.html   v1 and v2 are two variables being passed into function add this.form.v1.value gets the value the user typed in the v1 textbox on the form in this document The button calls the function add when it is clicked (onclick)
if – elseif - else http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/if_else.html

More Related Content

PDF
Building native mobile apps using web technologies
PPTX
Html Templating - DOT JS
DOCX
Introduction of javascript
PPTX
Page context and exception implicit object
PDF
JAVA SCRIPT
PPTX
Introduction to java_script
PPTX
AngularJS best practices
Building native mobile apps using web technologies
Html Templating - DOT JS
Introduction of javascript
Page context and exception implicit object
JAVA SCRIPT
Introduction to java_script
AngularJS best practices

What's hot (7)

PPTX
Java script writing javascript
PPT
JavaScript - Part-1
PPT
Introduction to javaScript
PDF
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 2...
PPT
Java script
PPTX
YMC Season 4 - Day6
PDF
Javascript DOM
Java script writing javascript
JavaScript - Part-1
Introduction to javaScript
Web Component Development Using Servlet & JSP Technologies (EE6) - Chapter 2...
Java script
YMC Season 4 - Day6
Javascript DOM
Ad

Similar to Javascript (20)

PPTX
JavaScript with Syntax & Implementation
PPT
Javascript
PPT
Session vii(java scriptbasics)
PPT
CTS Conference Web 2.0 Tutorial Part 2
PPTX
Cartegraph Live HTML, CSS, JavaScript and jQuery Training
PPTX
JavaScript - Getting Started.pptx
PPT
Introduction to Java Scripting
PDF
Intro to Javascript and jQuery
PPT
Javascript tutorial
PDF
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
PDF
Wt unit 2 ppts client side technology
PDF
Wt unit 2 ppts client sied technology
PPT
JAVA SCRIPT
PPTX
Unit III.pptx IT3401 web essentials presentatio
PPT
JavaScript & Dom Manipulation
PDF
JavaScript-Core
PDF
JavaScript-Core
PPTX
Java script Basic
PDF
Intro to mobile web application development
PPTX
JavaScript_III.pptx
JavaScript with Syntax & Implementation
Javascript
Session vii(java scriptbasics)
CTS Conference Web 2.0 Tutorial Part 2
Cartegraph Live HTML, CSS, JavaScript and jQuery Training
JavaScript - Getting Started.pptx
Introduction to Java Scripting
Intro to Javascript and jQuery
Javascript tutorial
java-scriptcdvcx vnbm,azsdfghjkml;sxdfcgmndxfcgvhb nmfctgvbhjnm ,cfgvb nm,xc ...
Wt unit 2 ppts client side technology
Wt unit 2 ppts client sied technology
JAVA SCRIPT
Unit III.pptx IT3401 web essentials presentatio
JavaScript & Dom Manipulation
JavaScript-Core
JavaScript-Core
Java script Basic
Intro to mobile web application development
JavaScript_III.pptx
Ad

More from Program in Interdisciplinary Computing (20)

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
cuic standard and advanced reporting.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
A Presentation on Artificial Intelligence
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Cloud computing and distributed systems.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
NewMind AI Monthly Chronicles - July 2025
cuic standard and advanced reporting.pdf
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Empathic Computing: Creating Shared Understanding
A Presentation on Artificial Intelligence
20250228 LYD VKU AI Blended-Learning.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Chapter 3 Spatial Domain Image Processing.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Cloud computing and distributed systems.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

Javascript

  • 1.  
  • 2. Programming Languages All have… Variables, data types, assignment Arithmetic, relational, and logical operators, and expressions Control structure: if-then, while, loops, iteration Program structure: functions, objects, methods Arrays and strings Input and Output
  • 3. What is JavaScript? JavaScript is a programming/scripting language designed for the Web Javascript is interpreted not compiled JavaScript is not Java JavaScript provides interactivity for Web pages JavaScript may be embedded in HTML or referenced from HTML (like CSS) JavaScript is forgiving and easy to use
  • 4. JavaScript is Object-Oriented JavaScript uses objects that have attributes and methods bgColor is an attribute of the document object document.bgColor=“#888888”; write is a method in the document object document.write(“Hello Earl!”); The DOM (Document Object Model)
  • 5. JavaScript is typically used to enhance a Web interface http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/examples/mouseover2.html http://pic.fsu.edu/courses/wdp/current/tutorials/javascript/coolmenu/ http://javascript.internet.com/toc.html http://sixrevisions.com/rapid-development/10_ajax_effects_website_fanciness/ Javascript is a key element in the popular AJAX programming methodology. Javascript code can reference Javascript libraries such as jQuery .
  • 6. JavaScript Embedded in HTML In the html <body>
  • 7. JavaScript Embedded in HTML In the html <body> http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/doc_write.html
  • 8. JavaScript Embedded in HTML In the html <head> http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/function.html
  • 9. Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables.html
  • 10. Working with Variables http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/variables2.html
  • 11. HTML Forms Javascript can collect user input through HTML forms. http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_objects.html http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/change_background.html http://www.w3schools.com/html/html_forms.asp
  • 12. Calling a function from a form http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder.html http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/form_adder2.html v1 and v2 are two variables being passed into function add this.form.v1.value gets the value the user typed in the v1 textbox on the form in this document The button calls the function add when it is clicked (onclick)
  • 13. if – elseif - else http://www.pic.fsu.edu/courses/wad/tutorials/javascript/examples/if_else.html