JavaScript
I have three variables that I would like to use to define the href for downloading a file:
var fSelect;
var uSelect;
var bSelect;
So my href would be defined by a variable like this:
var saveFile = '../files/' + fSelect + uSelect + bSelect + '.x3g';
HTML
But then how do i use this in my HTML document?
<a><img src="../save-button.png" alt="Save" width="120" height="40" /></a>
Give the img tag an ID attribute (in this case, I'm using img)
Then modify the tag using DOM