PDA

View Full Version : How to dynamically add style tag to head



jeroenvduffelen
4 Oct 2010, 12:55 AM
This does not seem to work:


var styleTag = '<style type="text/css" media="screen">'+css+'</style>';
Ext.query('head')[0].appendChild(styleTag);

Animal
4 Oct 2010, 1:55 AM
http://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html