Chapter 14: JavaScript and DHTML

 <  Day Day Up  >  


Overview

Adding interactivity to a Web site is not limited to server-side programs. The client side of the Web ¾ the browser ¾ generally can execute code in the form of scripting or embedded programmed objects. For Web developers, often the easiest way to begin adding dynamic aspects to a Web page is through client-side scripting, primarily using JavaScript. In the case of JavaScript, code is either directly inserted into or referenced from an HTML/XHTML document, and is executed when the page is loaded by the browser. This chapter discusses the intersection between scripting and markup, but does not attempt to teach scripting techniques in depth. In-depth coverage of JavaScript can be found in the companion book JavaScript: The Complete Reference (Powell & Schneider, Osborne, 2001). However, we will present the material required for developers to incorporate canned script code properly and to appreciate the important role JavaScript will play in Web pages in the future as markup, style sheets, and scripting intersect in the Document Object Model (DOM).



 <  Day Day Up  >  


HTML & XHTML
HTML & XHTML: The Complete Reference (Osborne Complete Reference Series)
ISBN: 007222942X
EAN: 2147483647
Year: 2003
Pages: 252
Authors: Thomas Powell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net