/ Published in: JavaScript
Target only opera with external CSS
Expand |
Embed | Plain Text
<script type="text/javascript"><!-- var start = "<" var end = ">" if (navigator.userAgent.indexOf('Opera') != -1) { document.write(start) document.write('link rel=\"stylesheet\" type=\"text/css\" href=\"/css/opera.css\" ') document.write(end) } //--></script>
Comments
Subscribe to comments
You need to login to post a comment.

I know this is a but funny formulated, as the start & end is defined as variables, but of some odd reason this works, while writing the full line does not.