Dynamically loading stylesheet for print in IE

Speed Razor

New Member
I have the following code to load a new stylesheet to print a lightbox dialog:\[code\] $styleUrl = '../Content/styles/icis.dashboard.colorbox.print.css'; if (document.createStyleSheet) { document.createStyleSheet($styleUrl); } else { $('head').append('<link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/Content/styles/icis.dashboard.colorbox.print.css" media="print">'); }\[/code\]How do i restrict the media type to print in the IE specific code?
 
Top