How can I call a script by following a conditional in html5?
For example, depending on the address in the browser it loads certain script
If the address is link , load the following script:
<script src="js/index.js"></script>
If the address is link load the following script:
<script src="dispensacao/js/index.js"></script>
If the address is link , load the following script:
<script src="hinarioCatado/js/index.js"></script>
and so on with several ifs
Thank you!