Forum Moderators: open
I have a call in my header to an external script which looks like this (and works!)
<script type="text/javascript" language="JavaScript" src="test.js"></script>
Now I want to make it conditional like this
<script type="text/javascript" language="JavaScript">
if something
do this
else if another something
do this
else //if all else
execute test.js
</script>
Everything works fine but I can't seem to find the correct syntax to get test.js to execute.