May 11, 2004

Presentational Javascript

Bobby van der Sluis talks about Presentational JavaScript in an excellent article.
Presentational JavaScript is not a hack. It is a standards compliant way of solving issues that cannot be done with CSS only. In the next years presentational JavaScript will probably be replaced by CSS, when browsers have better CSS2.1 compliance and with the introduction and implementation of a more advanced styling language like CSS3. The one day that no presentational JavaScript will be needed anymore, we can say that both standards makers and browser makers have done their job well. Until then, presentational JavaScript is there for the rescue.
This is an idea that is starting to gain steam. Peter-Paul Koch started by explaining the principle of Minimal CSS Enhancement. Digital Web also talks about this in Separating behavior and structure and Enhancing Structural Markup.
Post Info

Tagged As CSS, HTML, Javascript

Comments are Open (1)

Posted at 10:10 AM

Comments

Sam Newman

I use Javascript to create a printable version of my page - a standard print css changes most of the layout, and I use the Javascript to extract links and generate footnotes. It works fairly well and works in IE, Firefox and Safari.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu