SlideShare ist ein Scribd-Unternehmen logo
1 von 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/

Weitere ähnliche Inhalte

Was ist angesagt?

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
 

Was ist angesagt? (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
 

Andere mochten auch

το νησι των θησαυρων βεντουρης β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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 

Kürzlich hochgeladen (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
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...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 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/

Hinweis der Redaktion

  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