\n\n\n
\nslide23. Internal example \n\n\n\n\n\n\n\nslide24. External example \n\n \n\n\n\n
\nslide25. How does JS access the page? DOM: Document Object Model\nA framework to describe a web page (document) in a tree-like structure
\nslide26. DOM
\nslide27. DOM
\nslide28. Using the DOM to get at the page \u000b\u000b\u000b

Hello World!

\u000b\u000b\u000b\u000b\u000b
\nslide29. Using the DOM to get at the page \u000b\u000b\u000b

Hello World!

\u000b\u000b\u000b\u000b\u000b
\nslide30. JavaScript Basics
\nslide31. JavaScript Basics Statements\nVariables\nEvents\nFunctions\nDialogs
\nslide32. Statements
\nslide33. JavaScript Variables Variables are used to store data. \nRules for variable names:\nVariable names are case sensitive \nThey must begin with a letter or the underscore character \nstrname – STRNAME (not same)
\nslide34. JavaScript Variables Variables: containers for data\nAll variables have \nName\nType – JavaScript is loosely typed\nValue or “null”\nTo declare a variable\nvar variableName\nBeware of reserved words:\nE.g., ‘if’, ‘Document’, ‘Math’, etc.
\nslide35. JavaScript Operators Arithmetic Operators
\nslide36. JavaScript Operators Assignment Operators
\nslide37. JavaScript Operators Comparison Operators
\nslide38. JavaScript Operators Logical Operators
\nslide39. User and Browser Events
\nslide40. Functions \n...\n\n
\nslide41. Dialogs alert(\"Hello!\");\nconfirm(\"Delete files?\");\nvar name=prompt(\"Your name?\", \"Tim Berners-Lee\");
\nslide42. Coding Tips Check your statements are on one line\nCheck your \" and ' quotes match\nTake care with capitalisation\nLay it out neatly - use tabs\nUse the Chrome developer tools\nOr Firebug for Firefox
\nslide43. A Word About Comments JavaScript Comments\nThese comments must be within a script\n// begins a single line comment\nThese can start anywhere on the line, but the remainder of the line bec" }

JavaScript CMPT 281 Outline Introduction to

JavaScript CMPT 281 Outline Introduction to
1 / 1
JavaScript CMPT 281 Outline Introduction to - slide 1 of 47 JavaScript CMPT 281 Outline Introduction to - slide 2 of 47 JavaScript CMPT 281 Outline Introduction to - slide 3 of 47 JavaScript CMPT 281 Outline Introduction to - slide 4 of 47 JavaScript CMPT 281 Outline Introduction to - slide 5 of 47 JavaScript CMPT 281 Outline Introduction to - slide 6 of 47 JavaScript CMPT 281 Outline Introduction to - slide 7 of 47 JavaScript CMPT 281 Outline Introduction to - slide 8 of 47 JavaScript CMPT 281 Outline Introduction to - slide 9 of 47 JavaScript CMPT 281 Outline Introduction to - slide 10 of 47 JavaScript CMPT 281 Outline Introduction to - slide 11 of 47 JavaScript CMPT 281 Outline Introduction to - slide 12 of 47 JavaScript CMPT 281 Outline Introduction to - slide 13 of 47 JavaScript CMPT 281 Outline Introduction to - slide 14 of 47 JavaScript CMPT 281 Outline Introduction to - slide 15 of 47 JavaScript CMPT 281 Outline Introduction to - slide 16 of 47 JavaScript CMPT 281 Outline Introduction to - slide 17 of 47 JavaScript CMPT 281 Outline Introduction to - slide 18 of 47 JavaScript CMPT 281 Outline Introduction to - slide 19 of 47 JavaScript CMPT 281 Outline Introduction to - slide 20 of 47 JavaScript CMPT 281 Outline Introduction to - slide 21 of 47 JavaScript CMPT 281 Outline Introduction to - slide 22 of 47 JavaScript CMPT 281 Outline Introduction to - slide 23 of 47 JavaScript CMPT 281 Outline Introduction to - slide 24 of 47 JavaScript CMPT 281 Outline Introduction to - slide 25 of 47 JavaScript CMPT 281 Outline Introduction to - slide 26 of 47 JavaScript CMPT 281 Outline Introduction to - slide 27 of 47 JavaScript CMPT 281 Outline Introduction to - slide 28 of 47 JavaScript CMPT 281 Outline Introduction to - slide 29 of 47 JavaScript CMPT 281 Outline Introduction to - slide 30 of 47 JavaScript CMPT 281 Outline Introduction to - slide 31 of 47 JavaScript CMPT 281 Outline Introduction to - slide 32 of 47 JavaScript CMPT 281 Outline Introduction to - slide 33 of 47 JavaScript CMPT 281 Outline Introduction to - slide 34 of 47 JavaScript CMPT 281 Outline Introduction to - slide 35 of 47 JavaScript CMPT 281 Outline Introduction to - slide 36 of 47 JavaScript CMPT 281 Outline Introduction to - slide 37 of 47 JavaScript CMPT 281 Outline Introduction to - slide 38 of 47 JavaScript CMPT 281 Outline Introduction to - slide 39 of 47 JavaScript CMPT 281 Outline Introduction to - slide 40 of 47 JavaScript CMPT 281 Outline Introduction to - slide 41 of 47 JavaScript CMPT 281 Outline Introduction to - slide 42 of 47 JavaScript CMPT 281 Outline Introduction to - slide 43 of 47 JavaScript CMPT 281 Outline Introduction to - slide 44 of 47 JavaScript CMPT 281 Outline Introduction to - slide 45 of 47 JavaScript CMPT 281 Outline Introduction to - slide 46 of 47 JavaScript CMPT 281 Outline Introduction to - slide 47 of 47
JavaScript CMPT 281 Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages Announcements Assignment 3 Layout with tables JavaScript Resources Resources Why JavaScript? HTML CSS JavaScript Separation of

Related Topics

Download this presentation From Below

"JavaScript CMPT 281 Outline Introduction to" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
JavaScript CMPT 281<br>
02
Outline Introduction to JavaScript
Resources
What is JavaScript?
JavaScript in web pages<br>
03
Announcements<br>