Introduction to JavaScript

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Chapter 7 JavaScript: Introduction to Scripting. Outline Simple Programs Objects and Variables Obtaining User Input with prompt Dialogs – –Dynamic Welcome.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Introduction to JavaScript
The Web Warrior Guide to Web Design Technologies
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
CSC 2720 Building Web Applications JavaScript. Introduction  JavaScript is a scripting language most often used for client-side web development.  JavaScript.
CIS101 Introduction to Computing Week 09 Spring 2004.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
JavaScript CMPT 281. Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages.
4.1 JavaScript Introduction
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
INE1020 Introduction to Internet Engineering Tutorial 8 All about Lab 6.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Bridges To Computing General Information: This document was created for use in the "Bridges to Computing" project of Brooklyn College. You are invited.
Internet Mark-up Languages CO32036 Part Lecture: Elementary JavaScript.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Computing Theory: HTML Year 11. Lesson Objective You will: o Be able to define what HTML is - ALL o Be able to write HTML code to create your own web.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 JavaScript
JavaScript Syntax, how to use it in a HTML document
Introduction to JavaScript CS101 Introduction to Computing.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
JavaScript Introduction inf385t Semantic Web 2/20/2006.
Javascript Javascript The JavaScript Programming Language – Scripting Languages Executed by an interpreter contained within.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Introduction to.
Module 1 Introduction to JavaScript
Introduction to HTML.
Using DHTML to Enhance Web Pages
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Tutorial 10 Programming with JavaScript
Active Server Pages Computer Science 40S.
Chapter 2 Client/Server Applications
Intro to JavaScript CS 1150 Spring 2017.
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
Introduction to JavaScript
PHP / MySQL Introduction
JavaScript.
Chapter 7 - JavaScript: Introduction to Scripting
Introduction to JavaScript
DHTML Javascript Internet Technology.
JavaScript: Introduction to Scripting
WEB PROGRAMMING JavaScript.
Introduction to JavaScript
Integrating JavaScript and HTML
DHTML Javascript Internet Technology.
The Web Wizard’s Guide To JavaScript
JavaScript.
Tutorial 10 Programming with JavaScript
Tutorial 10: Programming with javascript
Chapter 7 - JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
Information Retrieval and Web Design
Introduction to JavaScript
Intro to Programming (in JavaScript)
Chapter 7 - JavaScript: Introduction to Scripting
Presentation transcript:

Introduction to JavaScript JavaScript is the most popular programming language today. Largely because of the popularity of the Web and that it is the only language available in the browsers. JavaScript is a scripting language The browser receives JavaScript “code” as text and then “interprets” it into “machine code” that the computer understands.

JavaScript Client Server Browser Web Server HTML File HTML File Internet Server Browser URL Web Server HTML File HTML File Image File Image File Script Scripts

JavaScript in HTML <script> var x=12; var y=2; var z=x+y; alert(z); </script> Put these lines into a file named “test.html” and open it in a browser. You can right click and “View source” to see the browser has loaded your code.

With JavaScript you can: Do everything you can in other modern programming languages: Create variables Do math, date and string functions Create “if” statements, “for” loops, “while” loops, and functions Create Object Oriented Designs (more on this later)

You can also Access and modify the contents of your web pages Put up error dialogs Make it look like you’re putting up windows with controls like buttons, popup menus, lists, etc. Display dynamic maps Interact with the user in many other ways

JavaScript cannot Access the local computers disk drive, network (other than it’s original server), printer, and other resources Launch another program Add viruses to your computer