Hi

I was wondering if someone can help me? How can I pass a variable through a URL?
I want to add the variable in the middle of a URL in the href tag.

For example:
<li><a href"images/file''+ variable +'.jpg"/></a></li>

How is this done using JavaScript?
I have created the variable but how do I add it to the href tag?

Many thanks