I have a HTML page.
In that, according to the browser, I need to include a separate JavaScript file.
How is it possible?
<script type="text/javascript"> if(navigator.appName == 'Microsoft Internet Explorer') { //here i need to include one.js } else { //here i need to include two.js } </script>
And finally, if you're already using JQuery in your project and just left out the tag for it, you can use $.getScript
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