I want to include <script src="ie.js"> if the browser is IE.
Otherwise, include all.js for all other browsers.
How can I do this?
You can do this using conditional comments. Example:
<!--[if IE]>
<script src="ie.js">
<![endif]-->
<!--[if !IE]><!-->
<script src="all.js"></script>
<!--<![endif]-->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With