Abstract
In Chapter 1, I stressed the importance of separating your markup, behavior, and presentation. The problem with separating everything is that many aspects of the three layers overlap or even collide in an explosion messed-up code. You’ve already seen how to manipulate the DOM document structure in Chapter 3 and the behavioral event listeners in Chapter 4. Now it’s time to discuss the presentation layer and how you can write scripts to modify your presentation. We’ll explore ways to modify the presentation without embedding it in the script itself, though sometimes doing so will be unavoidable.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2007 Jeffrey Sambells, Aaron Gustafson
About this chapter
Cite this chapter
(2007). Dynamically Modifying Style and Cascading Style Sheets. In: Sambells, J., Gustafson, A. (eds) AdvancED DOM Scripting. Apress. https://doi.org/10.1007/978-1-4302-0298-1_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0298-1_5
Publisher Name: Apress
Print ISBN: 978-1-59059-856-6
Online ISBN: 978-1-4302-0298-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books