SlideShare a Scribd company logo
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/

More Related Content

What's hot (18)

Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePoint
mikehuguet
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
Jerry Wijaya
 
Web development today
Web development todayWeb development today
Web development today
Jaydev Gajera
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web Application
Rabab Gomaa
 
Html5
Html5Html5
Html5
Ben MacNeill
 
Web component driven development
Web component driven developmentWeb component driven development
Web component driven development
Gil Fink
 
Website Series 4 - JavaScript
Website Series 4 - JavaScriptWebsite Series 4 - JavaScript
Website Series 4 - JavaScript
Eugene Yang
 
Blazor Full-Stack
Blazor Full-StackBlazor Full-Stack
Blazor Full-Stack
Ed Charbeneau
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & Tricks
Will Strohl
 
Week1 Dreamweaver and Server
Week1 Dreamweaver and ServerWeek1 Dreamweaver and Server
Week1 Dreamweaver and Server
Rowena 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 PHP
Paul Redmond
 
Web components. Compose the web.
Web components. Compose the web.Web components. Compose the web.
Web components. Compose the web.
Ny Fanilo Andrianjafy, B.Eng.
 
Html5
Html5Html5
Html5
Jetti Chowdary
 
Wrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web ApplicationsWrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web Applications
Ryan Roemer
 
Gwt Presentation 1
Gwt Presentation 1Gwt Presentation 1
Gwt Presentation 1
Jetti Chowdary
 
Tango with django
Tango with djangoTango with django
Tango with django
Jaysinh Shukla
 
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
dmethvin
 
Google’s PRPL Web development pattern
Google’s PRPL Web development patternGoogle’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePoint
mikehuguet
 
Html5 quick-learning-quide
Html5 quick-learning-quideHtml5 quick-learning-quide
Html5 quick-learning-quide
Jerry Wijaya
 
Web development today
Web development todayWeb development today
Web development today
Jaydev Gajera
 
Developing a Web Application
Developing a Web ApplicationDeveloping a Web Application
Developing a Web Application
Rabab Gomaa
 
Web component driven development
Web component driven developmentWeb component driven development
Web component driven development
Gil Fink
 
Website Series 4 - JavaScript
Website Series 4 - JavaScriptWebsite Series 4 - JavaScript
Website Series 4 - JavaScript
Eugene Yang
 
DNN Database Tips & Tricks
DNN Database Tips & TricksDNN Database Tips & Tricks
DNN Database Tips & Tricks
Will Strohl
 
Week1 Dreamweaver and Server
Week1 Dreamweaver and ServerWeek1 Dreamweaver and Server
Week1 Dreamweaver and Server
Rowena 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 PHP
Paul Redmond
 
Wrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web ApplicationsWrangling Large Scale Frontend Web Applications
Wrangling Large Scale Frontend Web Applications
Ryan 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 Slow
dmethvin
 

Viewers also liked (20)

το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2
cgialopsos
 
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 maravillosa
Pipero
 
Maito happy
Maito happyMaito happy
Maito happy
MARTHAGL06
 
Prática 4
Prática 4Prática 4
Prática 4
sanzjavi60
 
Introduction to CMS
Introduction to CMSIntroduction to CMS
Introduction to CMS
Zac Gordon
 
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalarDeni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Mithat ÖZTEKİN
 
Form 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compoundsForm 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compounds
Sook Yen Wong
 
Core yarn recomendations_and_control_points
Core yarn recomendations_and_control_pointsCore yarn recomendations_and_control_points
Core yarn recomendations_and_control_points
Mithat ÖZTEKİN
 
Mm ppt
Mm pptMm ppt
Mm ppt
mahesh kumar
 
Compuestos y reacciones químicas
Compuestos y reacciones químicasCompuestos y reacciones químicas
Compuestos y reacciones químicas
Arturo 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ética
Evelin Rojas
 
BUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless SetupBUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless Setup
Hansjoerg Posch
 
Proposal bop madin ula 01
Proposal bop madin ula 01Proposal bop madin ula 01
Proposal bop madin ula 01
Muslimin 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 ions
Carole Paquette
 
SELF DIRECTED LEARNING
SELF DIRECTED LEARNINGSELF DIRECTED LEARNING
SELF DIRECTED LEARNING
Sary Nieman
 
Measurement and Metrology
Measurement and MetrologyMeasurement and Metrology
Measurement and Metrology
Avinash Navin
 
Form 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 GrowthForm 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 Growth
Sook Yen Wong
 
Halogens and Noble gases
Halogens and Noble gasesHalogens and Noble gases
Halogens and Noble gases
Arrehome
 
Learning and Teaching Part C
Learning and Teaching Part CLearning and Teaching Part C
Learning and Teaching Part C
George Hobson
 
το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2το νησι των θησαυρων βεντουρης β2
το νησι των θησαυρων βεντουρης β2
cgialopsos
 
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 maravillosa
Pipero
 
Introduction to CMS
Introduction to CMSIntroduction to CMS
Introduction to CMS
Zac Gordon
 
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalarDeni̇m kumaş üzeri̇ndeki̇ hatalar
Deni̇m kumaş üzeri̇ndeki̇ hatalar
Mithat ÖZTEKİN
 
Form 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compoundsForm 3 PMR Science Calcium compounds
Form 3 PMR Science Calcium compounds
Sook Yen Wong
 
Core yarn recomendations_and_control_points
Core yarn recomendations_and_control_pointsCore yarn recomendations_and_control_points
Core yarn recomendations_and_control_points
Mithat ÖZTEKİN
 
Compuestos y reacciones químicas
Compuestos y reacciones químicasCompuestos y reacciones químicas
Compuestos y reacciones químicas
Arturo 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ética
Evelin Rojas
 
BUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless SetupBUNTE.de Drupal CMS Headless Setup
BUNTE.de Drupal CMS Headless Setup
Hansjoerg Posch
 
Proposal bop madin ula 01
Proposal bop madin ula 01Proposal bop madin ula 01
Proposal bop madin ula 01
Muslimin 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 ions
Carole Paquette
 
SELF DIRECTED LEARNING
SELF DIRECTED LEARNINGSELF DIRECTED LEARNING
SELF DIRECTED LEARNING
Sary Nieman
 
Measurement and Metrology
Measurement and MetrologyMeasurement and Metrology
Measurement and Metrology
Avinash Navin
 
Form 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 GrowthForm 3 Science Chapter 5 Growth
Form 3 Science Chapter 5 Growth
Sook Yen Wong
 
Halogens and Noble gases
Halogens and Noble gasesHalogens and Noble gases
Halogens and Noble gases
Arrehome
 
Learning and Teaching Part C
Learning and Teaching Part CLearning and Teaching Part C
Learning and Teaching Part C
George Hobson
 
Ad

Similar to Introduction to Javascript - College Lecture (20)

Introduction to jQuery - College Lecture
Introduction to jQuery - College LectureIntroduction to jQuery - College Lecture
Introduction to jQuery - College Lecture
Zac Gordon
 
Java script
Java scriptJava script
Java script
Ramesh Kumar
 
Introduction to web programming with JavaScript
Introduction to web programming with JavaScriptIntroduction to web programming with JavaScript
Introduction to web programming with JavaScript
T11 Sessions
 
倔倔和Javascript的那些事儿
倔倔和Javascript的那些事儿倔倔和Javascript的那些事儿
倔倔和Javascript的那些事儿
Ting Lv
 
01 Introduction - JavaScript Development
01 Introduction - JavaScript Development01 Introduction - JavaScript Development
01 Introduction - JavaScript Development
Tommy Vercety
 
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition DeitelThe Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
phakgaliwall
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
viitalyawale
 
Difference between java script and jquery
Difference between java script and jqueryDifference between java script and jquery
Difference between java script and jquery
Umar Ali
 
Training javascript 2012 hcmut
Training javascript 2012 hcmutTraining javascript 2012 hcmut
Training javascript 2012 hcmut
University of Technology
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
ounergernan
 
Learn javascript easy steps
Learn javascript easy stepsLearn javascript easy steps
Learn javascript easy steps
prince Loffar
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
rattaaseifu
 
Javascript note for engineering notes.pptx
Javascript note for engineering notes.pptxJavascript note for engineering notes.pptx
Javascript note for engineering notes.pptx
engineeradda55
 
How To Do Everything With JavaScript
How To Do Everything With JavaScriptHow To Do Everything With JavaScript
How To Do Everything With JavaScript
Azharul Haque Shohan
 
UNIT 1 (7).pptx
UNIT 1 (7).pptxUNIT 1 (7).pptx
UNIT 1 (7).pptx
DrDhivyaaCRAssistant
 
Easy javascript
Easy javascriptEasy javascript
Easy javascript
Bui Kiet
 
Web Technology Part 2
Web Technology Part 2Web Technology Part 2
Web Technology Part 2
Thapar Institute
 
jQuery Introduction
jQuery IntroductionjQuery Introduction
jQuery Introduction
Arwid Bancewicz
 
Build a game with javascript (may 21 atlanta)
Build a game with javascript (may 21 atlanta)Build a game with javascript (may 21 atlanta)
Build a game with javascript (may 21 atlanta)
Thinkful
 
Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)
XPERT INFOTECH
 
Introduction to jQuery - College Lecture
Introduction to jQuery - College LectureIntroduction to jQuery - College Lecture
Introduction to jQuery - College Lecture
Zac Gordon
 
Introduction to web programming with JavaScript
Introduction to web programming with JavaScriptIntroduction to web programming with JavaScript
Introduction to web programming with JavaScript
T11 Sessions
 
倔倔和Javascript的那些事儿
倔倔和Javascript的那些事儿倔倔和Javascript的那些事儿
倔倔和Javascript的那些事儿
Ting Lv
 
01 Introduction - JavaScript Development
01 Introduction - JavaScript Development01 Introduction - JavaScript Development
01 Introduction - JavaScript Development
Tommy Vercety
 
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition DeitelThe Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
The Complete Internet and World Wide Web Cyber Classroom 2nd ed Edition Deitel
phakgaliwall
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
viitalyawale
 
Difference between java script and jquery
Difference between java script and jqueryDifference between java script and jquery
Difference between java script and jquery
Umar Ali
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
ounergernan
 
Learn javascript easy steps
Learn javascript easy stepsLearn javascript easy steps
Learn javascript easy steps
prince Loffar
 
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. DeitelInternet World Wide Web How to Program 2nd Edition Harvey M. Deitel
Internet World Wide Web How to Program 2nd Edition Harvey M. Deitel
rattaaseifu
 
Javascript note for engineering notes.pptx
Javascript note for engineering notes.pptxJavascript note for engineering notes.pptx
Javascript note for engineering notes.pptx
engineeradda55
 
How To Do Everything With JavaScript
How To Do Everything With JavaScriptHow To Do Everything With JavaScript
How To Do Everything With JavaScript
Azharul Haque Shohan
 
Easy javascript
Easy javascriptEasy javascript
Easy javascript
Bui Kiet
 
Build a game with javascript (may 21 atlanta)
Build a game with javascript (may 21 atlanta)Build a game with javascript (may 21 atlanta)
Build a game with javascript (may 21 atlanta)
Thinkful
 
Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)Presenter manual RIA technology (specially for summer interns)
Presenter manual RIA technology (specially for summer interns)
XPERT INFOTECH
 
Ad

Recently uploaded (20)

Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...
pranavbodhak
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
New Ways to Reduce Database Costs with ScyllaDB
New Ways to Reduce Database Costs with ScyllaDBNew Ways to Reduce Database Costs with ScyllaDB
New Ways to Reduce Database Costs with ScyllaDB
ScyllaDB
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
UiPath Community Zurich: Release Management and Build Pipelines
UiPath Community Zurich: Release Management and Build PipelinesUiPath Community Zurich: Release Management and Build Pipelines
UiPath Community Zurich: Release Management and Build Pipelines
UiPathCommunity
 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
European Accessibility Act & Integrated Accessibility Testing
European Accessibility Act & Integrated Accessibility TestingEuropean Accessibility Act & Integrated Accessibility Testing
European Accessibility Act & Integrated Accessibility Testing
Julia Undeutsch
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
Gihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai TechnologyGihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai Technology
zainkhurram1111
 
Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...Cyber security cyber security cyber security cyber security cyber security cy...
Cyber security cyber security cyber security cyber security cyber security cy...
pranavbodhak
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
Palo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity FoundationPalo Alto Networks Cybersecurity Foundation
Palo Alto Networks Cybersecurity Foundation
VICTOR MAESTRE RAMIREZ
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
New Ways to Reduce Database Costs with ScyllaDB
New Ways to Reduce Database Costs with ScyllaDBNew Ways to Reduce Database Costs with ScyllaDB
New Ways to Reduce Database Costs with ScyllaDB
ScyllaDB
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
UiPath Community Zurich: Release Management and Build Pipelines
UiPath Community Zurich: Release Management and Build PipelinesUiPath Community Zurich: Release Management and Build Pipelines
UiPath Community Zurich: Release Management and Build Pipelines
UiPathCommunity
 
Introducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and ARIntroducing FME Realize: A New Era of Spatial Computing and AR
Introducing FME Realize: A New Era of Spatial Computing and AR
Safe Software
 
Create Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent BuilderCreate Your First AI Agent with UiPath Agent Builder
Create Your First AI Agent with UiPath Agent Builder
DianaGray10
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Jira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : IntroductionJira Administration Training – Day 1 : Introduction
Jira Administration Training – Day 1 : Introduction
Ravi Teja
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
GDG Cloud Southlake #43: Tommy Todd: The Quantum Apocalypse: A Looming Threat...
James Anderson
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
AI Trends - Mary Meeker
AI Trends - Mary MeekerAI Trends - Mary Meeker
AI Trends - Mary Meeker
Razin Mustafiz
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
European Accessibility Act & Integrated Accessibility Testing
European Accessibility Act & Integrated Accessibility TestingEuropean Accessibility Act & Integrated Accessibility Testing
European Accessibility Act & Integrated Accessibility Testing
Julia Undeutsch
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
Gihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai TechnologyGihbli AI and Geo sitution |use/misuse of Ai Technology
Gihbli AI and Geo sitution |use/misuse of Ai Technology
zainkhurram1111
 

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/

Editor's Notes