I'm sure this is simple but here is what I need to do:
I want to change a variable within the source url. Heres an example of what I'm trying to say:
<script type="text/javascript" src="url.com?lang=en&X=word1&;"></script>
This works fine, but I want the variable X to be elsewhere, like this:
<script type="text/javascript" src="url.com?lang=en&X&;">
X=word;
</script>
How do I go about doing this?