JavaScript Basics & HTML DOM / PDF



JavaScript Basics & HTML DOM / PDF



JavaScript Basics & HTML DOM / PDF




Table of Contents


• What is and Why JavaScript?
• How and Where do you place JavaScript code?
• JavaScript language
• JavaScript functions
• JavaScript events
• JavaScript objects
• JavaScript HTML DOM objects
• Closure (need to be added)



------------------------


Sample of the PDF document 







What is JavaScript?

• Was designed to add interactivity to HTML pages
• Is a scripting language (a scripting language is a lightweight programming language)
• JavaScript code is usually embedded directly into HTML pages
• JavaScript is an interpreted language (means that scripts execute without preliminary compilation)



What can a JavaScript do?

• JavaScript gives HTML designers a programming tool
• JavaScript can put dynamic text into an HTML page
• JavaScript can react to events
• JavaScript can read and write HTML elements
• JavaScript can be used to validate input data
• JavaScript can be used to detect the visitor's browser
• JavaScript can be used to create cookies


How to put a JavaScript code into an HTML page?

• Use the







Where Do You Place Scripts?

• Scripts can be in the either section or section
• Convention is to place it in the section




.............





Download JavaScript Basics & HTML DOM / PDF




JavaScript Basics & HTML DOM / PDF






0 commentaires: