javascript modify href attr

JavaScript
link.href = link.href + '?param1=' + input.value;
Source

Also in JavaScript: