Edited by: Phạm Thuận Hiếu Ref:w3schools.com JAVASCRIPT Browser scripting.

Slides:



Advertisements
Similar presentations
1 What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight.
Advertisements

Java Script Session1 INTRODUCTION.
Javascript It’s not JAVA. What do these all have in common?
The Web Warrior Guide to Web Design Technologies
HTML Forms JavaScript Introduction / Overview Lab Homework #1 CS 183 4/8/2010.
Javascript Client-side scripting. Up to now  We've seen a little about how to control  content with HTML  presentation with CSS  Javascript is a language.
Tutorial 10 Programming with JavaScript
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
4.1 JavaScript Introduction
Programming with JavaScript (Chapter 10). XP Various things Midterm grades: Friday Winter Career Fair – Thursday, April 28, 2011 (11 am to 3 pm). – MAC.
JavaScript Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
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.
Unobtrusive JavaScript
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Lesson 19. JavaScript errors Since JavaScript is an interpreted language, syntax errors will usually cause the script to fail. Both browsers will provide.
Chapter 10 Creating Pop-Up Windows, Adding Scrolling Messages, and Validating Forms HTML5 & CSS 7 th Edition.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
What is Java Script? An extension to HTML. An extension to HTML. Allows authors to incorporate some functionality in their web pages. (without using CGI.
Javascript. Outline Introduction Fundamental of JavaScript Javascript events management DOM and Dynamic HTML (DHTML)
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Tutorial 10 Programming with JavaScript
Introduction to JavaScript Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 1.
ALBERT WAVERING BOBBY SENG. Week 4: JavaScript  Quiz  Announcements/questions.
Javascript. What is JavaScript? Scripting (interpreted) language designed for the web Beware: JavaScript is case sensitive.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
1 JavaScript
JavaScript Syntax, how to use it in a HTML document
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
Browser scripting jQuery Edited by: Trần Thị Mỹ Dung Ref:w3schools.com.
1 Chapter 3 – JavaScript Outline Introduction Flowcharts Control Structures if Selection Structure if/else Selection Structure while Repetition Structure.
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 Defined DOM (Document Object Model) General Syntax Body vs. Head Variables Math & Logic Selection Functions & Events Loops Animation Getting.
Pertemuan 5 IT133 Pengembangan Web JavaScript. What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting.
CIS 3.5 Lecture 2.3 "Introduction to JavaScript".
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
Lesson 30: JavaScript and DHTML Fundamentals. Objectives Define and contrast client-side and server-side technologies used to create dynamic content for.
This is our seminar JavaScript And DOM This is our seminar JavaScript And DOM.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web.
Introduction to JavaScript. Introduction What is it? How does it work? What is Java? Learning JavaScript JavaScript Statements JavaScript and HTML forms.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
The Magic of Dynamic Web Pages Telerik Software Academy JavaScript Fundamentals.
Javascript Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
Chapter 13: DHTML: Object Model and Collections CIS 275—Web Application Development for Business I.
HTML...CSS...JAVASCRIPT for Higher Computing Science.
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
Programming Web Pages with JavaScript
Using DHTML to Enhance Web Pages
Active Server Pages Computer Science 40S.
Intro to JavaScript CS 1150 Spring 2017.
HTML.
INTRODUCTION TO HTML5.
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript an introduction.
The Web Wizard’s Guide To JavaScript
Unit 6 part 3 Test Javascript Test.
Tutorial 10 Programming with JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
Introduction to JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Edited by: Phạm Thuận Hiếu Ref:w3schools.com JAVASCRIPT Browser scripting

What is JS? -1 Scripting language Interacted Embedded Interpreted A sequence of statements Free JavaScript = ECMAScript (ECMA- 262)

What is JS?-2

We have to study JS. Why? Easy to learn. Easy to practise. Working in all major browsers We had a good knowledge of: HTML, CSS, through the previous seminar. So JS is the next step. It’s very amazing. Trust me!

Tools Any editors such as: Notepad, Wordpad... I use Notepad++ to illustrate all samples. When we have a large of statements: Use JSLint: assume, alert... Use Microsoft Script Debugger: control, execute, debug

Content What is JS? We have to study JS. Why? Tools Where script can be placed? JS practise

Where script can be placed? In, (Use one or some tags) In external files. (NOT contain the tags) Example:

JS Syntax-1-Variables var x; var y=0; var Y;/*comments*/ var z=“Hello”; var t=y;//comments var p = y+5; var q = p%2; var r = q/=2; var i=z+” “+”World!”; Local Global

JS Syntax-2-Comparisons&Operators + - * / % = += -= *= /= %= == != > = && || ! Ternary operator ===

JS Syntax-3-Statements If...else Switch...cases Loop: for, while, do..while, for in Popup box: alert(“text”);//alert box confirm(“text”);//confirm box prompt(“text”,”defaultvalue”);//input value before //entering a page.

JS Syntax-4-Functions & Events Define a Function function functionname(var1,var2,...,varX) { //some code //return value } Events are actions that can be detected by JavaScript. RefRef

JS Syntax-5-Timing Events Use 2 methods: setTimeout & clearTimeout Syntax: var t=setTimeout("statement",milliseconds); clearTimeout(setTimeout_variable)

JS Objects ObjectMethods & attributes Stringlength, match(), replace(),...RefRef DategetDay(), getTime(),...RefRef Arrayjoin(), pop(),...RefRef BooleantoString(), valueOf()RefRef Mathround(), random(), max()...RefRef RegExpRef

JS Advanced & Practise JavaScript Advanced: next seminar. Now, let’s explore all basic examples.explore