HELP!
I know how to load a javascript without any condition such as <script ... SRC:"myjavascripttobeloaded.js" />
I need to load a javascript depending on the value of variable. Here the sample pseudo-code.
<script language="javascript1.2">
var tmp = bla...
if (tmp == 1) {I want to load jsfile1.js}
if (tmp == 2) {I want to load jsfile2.js}
if (tmp == 3) {I want to load jsfile3.js}
so on and so on.
Can someone help please. Thanks.
</script>
I know how to load a javascript without any condition such as <script ... SRC:"myjavascripttobeloaded.js" />
I need to load a javascript depending on the value of variable. Here the sample pseudo-code.
<script language="javascript1.2">
var tmp = bla...
if (tmp == 1) {I want to load jsfile1.js}
if (tmp == 2) {I want to load jsfile2.js}
if (tmp == 3) {I want to load jsfile3.js}
so on and so on.
Can someone help please. Thanks.
</script>