DHTML
JavaScript - An Introduction
Review Answers
- What kind of programming model does JavaScript use?
JavaScript uses an object oriented programming model (OOP). - What is JavaScript confined to?
The Web browser. - What can JavaScript control?
Almost any element of a browser or Web page. - How is JavaScript often misused?
Numerous pop-up windows, disabling the Back button in the browser. - What does the DOM allow you to do?
It allows you to locate and manipulate any object in a Web page. - Name 2 browsers that use the standard W3C DOM.
Internet Explorer 5+, Firefox, Opera, Safari, Chrome - How can you see error messages produced by Firefox?
Go to Tools > Error Console - What are the two different areas of a Web page that you can put JavaScript?
The <head> section of the page, or the <body> section of the page. - What are inline JavaScripts?
Inline scripts don't use the <script> tag. Instead, scripts are enclosed entirely in an HTML tag. - What kind of scripts usually go into the <body> of a Web page?
Scripts that will write something out onto the page, or scripts that don't need to run before the page the rest of the page loads. - How can you provide alternate content to users who don't have JavaScript enabled browsers?
By using the <noscript></noscript> tags. Anything inside these tags will only be visible to a browser that is not running JavaScript.
DHTML - TOC - Introduction - Books -
JavaScript - An Introduction - Links - [ Answers ] -
Questions -
