Menu
i have a problem, i am trying to implement an html file that has javascript in it. here is what i have:
<SCRIPT TYPE=”text/JavaScript” SRC=”bundle.js”></SCRIPT>
the problem is that i need the value of the SRC attribute to be dynamic based on the locale of the browser. i thought this might work:
<SCRIPT TYPE=”text/JavaScript” SRC=navigator.browserLanguage+”bundle.js”></SCRIPT>
but it doesnt work. so im not sure how i can make it so the script loaded is from a directory that i dont know at coding time.
any help is greatly appreciated!!!