Download presentation
Presentation is loading. Please wait.
Published byAnthony Gilmore Modified over 9 years ago
1
Ku-Yaw Chang canseco@mail.dyu.edu.tw Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University
2
The programming language of the Web client-side (browser) All modern HTML pages are using JavaScript JavaScript and Java are different languages both in concept and design. Can manipulate the DOM change HTML contents Easy to learn 2014/10/12JavaScript 2
3
Be inserted between and tags JavaScripts can be put in 2014/10/12JavaScript 3
4
External JavaScripts Scripts can also be placed in external files. External scripts are practical when the same code is used in many different web pages. 2014/10/12JavaScript 4
5
My First JavaScript Click Date to display current day, date, and time. Date function myFunction() { document.getElementById("demo").innerHTML = Date(); } 2014/10/12JavaScript 5
6
class For specifying Change presentation ID For identification Change contents 2014/10/12JavaScript 6
7
State variables Initial conditions 2014/10/12JavaScript 7
8
console.log() method Display JavaScript values if your browser supports debugging Activate debugging in your browser with F12, and select "Console" in the debugger menu. 2014/10/12JavaScript 8
9
2014/10/12JavaScript 9
10
No official standards modern browsers have implemented (almost) the same methods and properties for JavaScript interactivity 2014/10/12JavaScript 10
11
Objects Window Screen Location History Navigator Popup Alert Timing Cookies 2014/10/12JavaScript 11
12
location.href returns the href (URL) of the current page location.hostname returns the domain name of the web host location.pathname returns the path and filename of the current page location.protocol returns the web protocol used (http:// or https://) location.assign loads a new document 2014/10/12JavaScript 12
13
SetTimeout vs. SetInterval 2014/10/12JavaScript 13
14
2014/10/12JavaScript 14
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.