If you already know the value to add at page load, you can add this when the document is ready: if you are using jQuery, use this:
$( 'class' ).attr( 'href', function(index, value) { return value + '?item=myValue'; });
Otherwise (regular Javascript):
var link = document.getElementById("mylink"); link.setAttribute('href', 'http://www.johndoeslink.com'+'?item=myValue');
source share