I'm using jquery to grab a variable in the url (http://website.com?Name=Brian) and setting a javascript variable as such:
var name = getQueryVariable('Name');
Now I'm trying to dynamically update an href property in Unbounce (unbounce.com) as follows:
document.getElementById('lp-pom-button-181').setAttribute("href","http://google.com?fname=name");
so that I can pass the variable on.
How do I add the 'var name' to the end of the url 'http://google.com?fname=' for the setAttribute href?
Thank you.