# Conditional stylesheets with javascript

**URL:** <https://forum.kirupa.com/t/conditional-stylesheets-with-javascript/317214>\
**Category:** Uncategorized\
**Created:** [December 14, 2010, 1:19am UTC](https://forum.kirupa.com/t/conditional-stylesheets-with-javascript/317214 "2010-12-14T01:19:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mak\_Valley](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Mak\_Valley](https://forum.kirupa.com/u/Mak_Valley)\
**Post date:** [December 14, 2010, 1:19am UTC](https://forum.kirupa.com/t/conditional-stylesheets-with-javascript/317214/1 "2010-12-14T01:19:23Z")

</div>

```auto

<!--[if IE]>
<link rel="blahblahblah
<![endif]-->

```

so i figure the above works, however I’m a mac user and I don’t have access Internet Explorer to test my question:

could the above conditional work for javascript as well?

```auto

<!--[if IE]>
<script language="javascript" href="shadowbox.js"></script>
<![endif]-->

```

like so? I’m being told that shadowbox just ruins some of the other javascript (in IE only) on a site I’m working on. I would much rather just not include it than use another detection with a workaround.
