You can tell it's Sunday cos I'm being "thick" today

If I call an external .js file like this:

```
<script type="text/javascript" src="http://www.mydomain.com/script.js"></script>

```

Can I pass a variable at the same time something like this:

```
<script type="text/javascript" src="http://www.mydomain.com/script.js?variable_name='variable_value'></script>

```

If so, how do I "read" / use that variable on script.js?

OR even better - but I haven't got a clue about mod\_rewrite would be:

```
<script type="text/javascript" src="http://www.mydomain.com/variable_value/script.js></script>

```

Then use a RewriteRule to strip the variable out, return script.js but still be able to use the variable value within script.js.

Any suggestions and help please thanks in advance.