Include CSS Stylesheet by DOM

By Benoit Asselin on Oct 12, 2007


Use this script when you want to use the DOM to include a cascading style sheet. Very simple to implement.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: includeCSS.js


Paste this code into the HEAD section of your HTML document.