SlideShare une entreprise Scribd logo
1  sur  25
JavaScript
document.dance();
Overview
• UIE Podcast - Sharing is caring
Lecture
• Flash update from Web & Gaming Conference
• The HTML <script> tag
• Whatup JS (hello-world.html)
• Selecting Elements with JS
• Basic Event Handler
Lab
Print page link



08 - JavaScript          Advanced Web Design   http://dabrook.org/
What Up Flash?

• You’re welcome HTML5
• Flash is the new HTML6
• Hi quality video
• Advanced 3D animation
• Data visualization
• HTML5 App!!!




08 - JavaScript       Advanced Web Design   http://dabrook.org/
How to Add JavaScript




08 - JavaScript         Advanced Web Design   http://dabrook.org/
How to Add JavaScript

       1. Inline (boo)




08 - JavaScript          Advanced Web Design   http://dabrook.org/
How to Add JavaScript

       1. Inline (boo)



       2. Embed (ok)




08 - JavaScript          Advanced Web Design   http://dabrook.org/
How to Add JavaScript

       1. Inline (boo)



       2. Embed (ok)



       3. External (yay)




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Mini Lab


     • Create a new document: how-to-add-js.html
     • Add the basic structure of an HTML page
     • Practice adding an alert message three ways




08 - JavaScript          Advanced Web Design         http://dabrook.org/
Hello JavaScript




08 - JavaScript      Advanced Web Design   http://dabrook.org/
Hello JavaScript

       1. Alert (annoying)




08 - JavaScript              Advanced Web Design   http://dabrook.org/
Hello JavaScript

       1. Alert (annoying)



       2. document.write() (ok)




08 - JavaScript              Advanced Web Design   http://dabrook.org/
Hello JavaScript

       1. Alert (annoying)



       2. document.write() (ok)



       3. innerHTML (better)




08 - JavaScript              Advanced Web Design   http://dabrook.org/
Mini Lab



     • Create a new document: hello-world-js.html
     • Practice writing to the screen in different ways




08 - JavaScript           Advanced Web Design             http://dabrook.org/
Selecting HTML Elements




08 - JavaScript          Advanced Web Design   http://dabrook.org/
Selecting HTML Elements




08 - JavaScript          Advanced Web Design   http://dabrook.org/
Selecting HTML Elements

       1. Select all elements by type




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Selecting HTML Elements

       1. Select all elements by type




       2. Select single element by ID




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Basic Event Handler




08 - JavaScript        Advanced Web Design   http://dabrook.org/
Basic Event Handler

       1. Add an ID to your link




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Basic Event Handler

       1. Add an ID to your link



       2. Select the element with JS




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Basic Event Handler

       1. Add an ID to your link



       2. Select the element with JS



       3. Add event handler




08 - JavaScript            Advanced Web Design   http://dabrook.org/
Basic Event Handler
       4. Code what you want to happen




     NOTE: Make sure JS appears below the HTML



08 - JavaScript         Advanced Web Design   http://dabrook.org/
Overview
• UIE Podcast - Sharing is caring
Lecture
• Flash update from Web & Gaming Conference
• The HTML <script> tag
• Whatup JS (hello-world.html)
• Selecting Elements with JS
• Basic Event Handler
Lab
Print page link



08 - JavaScript          Advanced Web Design   http://dabrook.org/
Lab

     • Create a new document: print-js.html
     • Add HTML and CSS for a basic page
        with a print stylesheet
     • Use your JS skills to have the document print
        when you click on a print link

      HINT: JavaScript function to print the current page




08 - JavaScript            Advanced Web Design         http://dabrook.org/
Homework

Add a print button or link to your resume page. Use
JavaScript to make the page print when the user clicks on the
link.


Upload to:
username.welovewebdesign.com/hw/08/




08 - JavaScript         Advanced Web Design        http://dabrook.org/

Contenu connexe

Tendances

Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development patternJeongkyu Shin
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePointmikehuguet
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quideJerry Wijaya
 
Web development today
Web development todayWeb development today
Web development todayJaydev Gajera
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web ApplicationRabab Gomaa
 
Web component driven development
Web component driven developmentWeb component driven development
Web component driven developmentGil Fink
 
Website Series 4 - JavaScript
Website Series 4 - JavaScriptWebsite Series 4 - JavaScript
Website Series 4 - JavaScriptEugene Yang
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & TricksWill Strohl
 
Week1 Dreamweaver and Server
Week1 Dreamweaver and ServerWeek1 Dreamweaver and Server
Week1 Dreamweaver and ServerRowena LI
 
Scraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPScraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPPaul Redmond
 
Wrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web ApplicationsWrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web ApplicationsRyan Roemer
 
PrairieDevCon 2014 - Web Doesn't Mean Slow
PrairieDevCon 2014 -  Web Doesn't Mean SlowPrairieDevCon 2014 -  Web Doesn't Mean Slow
PrairieDevCon 2014 - Web Doesn't Mean Slowdmethvin
 

Tendances (18)

Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development pattern
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePoint
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
 
Web development today
Web development todayWeb development today
Web development today
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web Application
 
Html5
Html5Html5
Html5
 
Web component driven development
Web component driven developmentWeb component driven development
Web component driven development
 
Website Series 4 - JavaScript
Website Series 4 - JavaScriptWebsite Series 4 - JavaScript
Website Series 4 - JavaScript
 
Blazor Full-Stack
Blazor Full-StackBlazor Full-Stack
Blazor Full-Stack
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & Tricks
 
Week1 Dreamweaver and Server
Week1 Dreamweaver and ServerWeek1 Dreamweaver and Server
Week1 Dreamweaver and Server
 
Scraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHPScraping the web with Laravel, Dusk, Docker, and PHP
Scraping the web with Laravel, Dusk, Docker, and PHP
 
Web components. Compose the web.
Web components. Compose the web.Web components. Compose the web.
Web components. Compose the web.
 
Html5
Html5Html5
Html5
 
Wrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web ApplicationsWrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web Applications
 
Gwt Presentation 1
Gwt Presentation 1Gwt Presentation 1
Gwt Presentation 1
 
Tango with django
Tango with djangoTango with django
Tango with django
 
PrairieDevCon 2014 - Web Doesn't Mean Slow
PrairieDevCon 2014 -  Web Doesn't Mean SlowPrairieDevCon 2014 -  Web Doesn't Mean Slow
PrairieDevCon 2014 - Web Doesn't Mean Slow
 

En vedette

το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2cgialopsos
 
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...oscargaliza
 
Antartida maravillosa
Antartida maravillosaAntartida maravillosa
Antartida maravillosaPipero
 
Introduction to CMS
Introduction to CMSIntroduction to CMS
Introduction to CMSZac Gordon
 
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalarDeni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalarMithat ÖZTEKİN
 
Form 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compoundsForm 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compoundsSook Yen Wong
 
Core yarn recomendations_and_control_points
Core yarn recomendations_and_control_pointsCore yarn recomendations_and_control_points
Core yarn recomendations_and_control_pointsMithat ÖZTEKİN
 
Compuestos y reacciones químicas
Compuestos y reacciones químicasCompuestos y reacciones químicas
Compuestos y reacciones químicasArturo Blanco
 
El fujo de la información genética
El fujo de la información genéticaEl fujo de la información genética
El fujo de la información genéticaEvelin Rojas
 
BUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless SetupBUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless SetupHansjoerg Posch
 
Proposal bop madin ula 01
Proposal bop madin ula 01Proposal bop madin ula 01
Proposal bop madin ula 01Muslimin Imin
 
The periodic table and identification of ions
The periodic table and identification of ionsThe periodic table and identification of ions
The periodic table and identification of ionsCarole Paquette
 
SELF DIRECTED LEARNING
SELF DIRECTED LEARNINGSELF DIRECTED LEARNING
SELF DIRECTED LEARNINGSary Nieman
 
Measurement and Metrology
Measurement and MetrologyMeasurement and Metrology
Measurement and MetrologyAvinash Navin
 
Form 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 GrowthForm 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 GrowthSook Yen Wong
 
Halogens and Noble gases
Halogens and Noble gasesHalogens and Noble gases
Halogens and Noble gasesArrehome
 
Learning and Teaching Part C
Learning and Teaching Part CLearning and Teaching Part C
Learning and Teaching Part CGeorge Hobson
 

En vedette (20)

το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2
 
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...
Acta de reunión de la mesa electoral de mediterránea catering pontevedra (def...
 
Antartida maravillosa
Antartida maravillosaAntartida maravillosa
Antartida maravillosa
 
Maito happy
Maito happyMaito happy
Maito happy
 
Prática 4
Prática 4Prática 4
Prática 4
 
Introduction to CMS
Introduction to CMSIntroduction to CMS
Introduction to CMS
 
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalarDeni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalar
 
Form 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compoundsForm 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compounds
 
Core yarn recomendations_and_control_points
Core yarn recomendations_and_control_pointsCore yarn recomendations_and_control_points
Core yarn recomendations_and_control_points
 
Mm ppt
Mm pptMm ppt
Mm ppt
 
Compuestos y reacciones químicas
Compuestos y reacciones químicasCompuestos y reacciones químicas
Compuestos y reacciones químicas
 
El fujo de la información genética
El fujo de la información genéticaEl fujo de la información genética
El fujo de la información genética
 
BUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless SetupBUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless Setup
 
Proposal bop madin ula 01
Proposal bop madin ula 01Proposal bop madin ula 01
Proposal bop madin ula 01
 
The periodic table and identification of ions
The periodic table and identification of ionsThe periodic table and identification of ions
The periodic table and identification of ions
 
SELF DIRECTED LEARNING
SELF DIRECTED LEARNINGSELF DIRECTED LEARNING
SELF DIRECTED LEARNING
 
Measurement and Metrology
Measurement and MetrologyMeasurement and Metrology
Measurement and Metrology
 
Form 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 GrowthForm 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 Growth
 
Halogens and Noble gases
Halogens and Noble gasesHalogens and Noble gases
Halogens and Noble gases
 
Learning and Teaching Part C
Learning and Teaching Part CLearning and Teaching Part C
Learning and Teaching Part C
 

Similaire à Introduction to Javascript - College Lecture

Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Estelle Weyl
 
Welcome to IE8 - Integrating Your Site With Internet Explorer 8
Welcome to IE8 - Integrating Your Site With Internet Explorer 8Welcome to IE8 - Integrating Your Site With Internet Explorer 8
Welcome to IE8 - Integrating Your Site With Internet Explorer 8Lachlan Hardy
 
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...Otto Kekäläinen
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete ReferenceEPAM Systems
 
Web Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereWeb Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereJohn Riviello
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax ApplicationsSiarhei Barysiuk
 
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersSearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersDistilled
 
Server Side Programming
Server Side Programming Server Side Programming
Server Side Programming Zac Gordon
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's dayAnkur Mishra
 
Introduction to Web Components & Polymer Workshop - JS Interactive
Introduction to Web Components & Polymer Workshop - JS InteractiveIntroduction to Web Components & Polymer Workshop - JS Interactive
Introduction to Web Components & Polymer Workshop - JS InteractiveJohn Riviello
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5Suresh Kumar
 
Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer John Riviello
 
Web Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereWeb Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereJohn Riviello
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Commit University
 

Similaire à Introduction to Javascript - College Lecture (20)

High-Speed HTML5
High-Speed HTML5High-Speed HTML5
High-Speed HTML5
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0
 
Welcome to IE8 - Integrating Your Site With Internet Explorer 8
Welcome to IE8 - Integrating Your Site With Internet Explorer 8Welcome to IE8 - Integrating Your Site With Internet Explorer 8
Welcome to IE8 - Integrating Your Site With Internet Explorer 8
 
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...The 5 most common reasons for a slow WordPress site and how to fix them – ext...
The 5 most common reasons for a slow WordPress site and how to fix them – ext...
 
HTML 5 Complete Reference
HTML 5 Complete ReferenceHTML 5 Complete Reference
HTML 5 Complete Reference
 
Html5 Future of WEB
Html5 Future of WEBHtml5 Future of WEB
Html5 Future of WEB
 
Web Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereWeb Components: The Future of Web Development is Here
Web Components: The Future of Web Development is Here
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
 
orcreatehappyusers
orcreatehappyusersorcreatehappyusers
orcreatehappyusers
 
orcreatehappyusers
orcreatehappyusersorcreatehappyusers
orcreatehappyusers
 
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersSearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
 
Server Side Programming
Server Side Programming Server Side Programming
Server Side Programming
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's day
 
Introduction to Web Components & Polymer Workshop - JS Interactive
Introduction to Web Components & Polymer Workshop - JS InteractiveIntroduction to Web Components & Polymer Workshop - JS Interactive
Introduction to Web Components & Polymer Workshop - JS Interactive
 
Getting started with html5
Getting started with html5Getting started with html5
Getting started with html5
 
Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer Workshop: Introduction to Web Components & Polymer
Workshop: Introduction to Web Components & Polymer
 
Web Components: The Future of Web Development is Here
Web Components: The Future of Web Development is HereWeb Components: The Future of Web Development is Here
Web Components: The Future of Web Development is Here
 
Put the 5 in HTML
Put the 5 in HTMLPut the 5 in HTML
Put the 5 in HTML
 
Html5
Html5Html5
Html5
 
Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta Workshop HTML5+PhoneGap by Ivano Malavolta
Workshop HTML5+PhoneGap by Ivano Malavolta
 

Dernier

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Introduction to Javascript - College Lecture

  • 2. Overview • UIE Podcast - Sharing is caring Lecture • Flash update from Web & Gaming Conference • The HTML <script> tag • Whatup JS (hello-world.html) • Selecting Elements with JS • Basic Event Handler Lab Print page link 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 3. What Up Flash? • You’re welcome HTML5 • Flash is the new HTML6 • Hi quality video • Advanced 3D animation • Data visualization • HTML5 App!!! 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 4. How to Add JavaScript 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 5. How to Add JavaScript 1. Inline (boo) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 6. How to Add JavaScript 1. Inline (boo) 2. Embed (ok) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 7. How to Add JavaScript 1. Inline (boo) 2. Embed (ok) 3. External (yay) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 8. Mini Lab • Create a new document: how-to-add-js.html • Add the basic structure of an HTML page • Practice adding an alert message three ways 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 9. Hello JavaScript 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 10. Hello JavaScript 1. Alert (annoying) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 11. Hello JavaScript 1. Alert (annoying) 2. document.write() (ok) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 12. Hello JavaScript 1. Alert (annoying) 2. document.write() (ok) 3. innerHTML (better) 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 13. Mini Lab • Create a new document: hello-world-js.html • Practice writing to the screen in different ways 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 14. Selecting HTML Elements 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 15. Selecting HTML Elements 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 16. Selecting HTML Elements 1. Select all elements by type 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 17. Selecting HTML Elements 1. Select all elements by type 2. Select single element by ID 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 18. Basic Event Handler 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 19. Basic Event Handler 1. Add an ID to your link 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 20. Basic Event Handler 1. Add an ID to your link 2. Select the element with JS 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 21. Basic Event Handler 1. Add an ID to your link 2. Select the element with JS 3. Add event handler 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 22. Basic Event Handler 4. Code what you want to happen NOTE: Make sure JS appears below the HTML 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 23. Overview • UIE Podcast - Sharing is caring Lecture • Flash update from Web & Gaming Conference • The HTML <script> tag • Whatup JS (hello-world.html) • Selecting Elements with JS • Basic Event Handler Lab Print page link 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 24. Lab • Create a new document: print-js.html • Add HTML and CSS for a basic page with a print stylesheet • Use your JS skills to have the document print when you click on a print link HINT: JavaScript function to print the current page 08 - JavaScript Advanced Web Design http://dabrook.org/
  • 25. Homework Add a print button or link to your resume page. Use JavaScript to make the page print when the user clicks on the link. Upload to: username.welovewebdesign.com/hw/08/ 08 - JavaScript Advanced Web Design http://dabrook.org/

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n