Donna J. Kain, Clarkson University

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
The Web Warrior Guide to Web Design Technologies
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Introduction to Scripting.
JavaScript 101 Lesson 01: Writing Your First JavaScript.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Information Technology Center Hany Abdelwahab Computer Specialist.
Introduction to scripting
Javascript and the Web Whys and Hows of Javascript.
4.1 JavaScript Introduction
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Generations of Programming Languages First generation  Machine Language Second Generation  Assembly Language Third Generation  Procedural language such.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Client Side Programming with JavaScript Why use client side programming? Web sides built on CGI programs can rapidly become overly complicated to maintain,
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
Scripts Chapter Scripts Small programs used to add interactivity to your web pages The backbone of Dynamic HTML (DHTML) Most scripts are written.
JavaScript - A Web Script Language Fred Durao
JS Basics 1 Lecture JavaScript - Basics. JS Basics 2 What is JavaScript JavaScript is a “simple”, interpreted, programming language with elementary object-
Intro to JavaScript. Some simple examples Examples from our webpage Examples from Andrews webpage Today’s Example.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(6) JavaScript:Introduction to Scripting.
An Introduction to JavaScript By: John Coliton Tuesday, November 10, 1998 Center for Teaching and Learning.
Introduction to JavaScript CS101 Introduction to Computing.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
Introduction into JavaScript Java 1 JavaScript JavaScript programs run from within an HTML document The statements that make up a program in an HTML.
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.
Java Script About Java Script Document Object Model Incorporating JavaScript Adding JavaScript to HTML Embedding a Javascript External Scripts Javascript.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
JavaScript & Introduction to AJAX
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript: A short introduction Joseph Lee Created by Joseph Lee.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 JavaScript.
Module 1 Introduction to JavaScript
Applied Component I Unit II Introduction of java-script
Using DHTML to Enhance Web Pages
Chapter 6 JavaScript: Introduction to Scripting
HTML & teh internets.
JavaScript is a programming language designed for Web pages.
Barb Ericson Georgia Institute of Technology May 2006
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
Introduction to Scripting
JavaScript for Beginners
Introduction to JavaScript
Chapter 7 - JavaScript: Introduction to Scripting
Web Systems Development (CSC-215)
DHTML Javascript Internet Technology.
A second look at JavaScript
JavaScript: Introduction to Scripting
WEB PROGRAMMING JavaScript.
Integrating JavaScript and HTML
DHTML Javascript Internet Technology.
T. Jumana Abu Shmais – AOU - Riyadh
Introduction to JavaScript
JavaScript Basics What is JavaScript?
JavaScript is a scripting language designed for Web pages by Netscape.
JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
JavaScript for Beginners
Chapter 7 - JavaScript: Introduction to Scripting
Presentation transcript:

Donna J. Kain, Clarkson University JavaScript Basics Donna J. Kain, Clarkson University

What it is JavaScript is A tool you can use to make HTML pages more dynamic. A scripting language with similarities to programming languages but not programming. A client side component. Object based Donna Kain Clarkson University

What it isn’t A programming language Though it has similarities to Java and C++ Donna Kain Clarkson University

What it can do Instruct browser to display information (I.e. user’s browser type) Make webpage appearance different depending on browser Monitor user events and specify reactions (I.e. mouse overs) Generate html for parts of pages Modify a page in response to events (I.e. click to change page color) Donna Kain Clarkson University

What it can do Check user input (I.e. in a form) Replace and update parts of pages (I.e. current date and time; user history of browsing) Change style and position of page elements dynamically (I.e. create moving layers that follow the user’s mouse) Control windows Create alerts and messages Donna Kain Clarkson University

How it works JavaScript runs in the browser is added to HTML pages Within the head element of a page Within the body element of a page Donna Kain Clarkson University

Conventions Script tags JavaScript is case sensitive <script language=“JavaScript”> Script goes here </script> <!-- //--> (comment tags hide script from old browsers) JavaScript is case sensitive Donna Kain Clarkson University

Conventions Functions and Arguments Document.write is a function <script language=“JavaScript”> <!-- document.write(“Here’s a script”) ; //--> </script> Document.write is a function Document is a pre-defined object Write is a pre-defined method The dot connects the object and the method Donna Kain Clarkson University

Conventions You can create names for objects, functions, and variables in JavaScript. However, note that reserved words that have special junctions in JavaScript. <script language=“JavaScript”> <!-- document.write(“Here’s a script”) ; //--> </script> Info in parentheses is an argument. The argument here is a string, which must be in quotation marks. Place a semi-colon after JavaScript statements Donna Kain Clarkson University

Do it/View it Create a simple HTML page with the basic HTML, head, title, and body elements. Place the JavaScript in the body of the page. <script language=“JavaScript”> <!-- document.write(“Here’s a script”) ; //your script// //--> </script> Donna Kain Clarkson University