Since you tagged jQuery, you could do it like this:
Javascript:
$("#urlarticle").submit(function() {
var linkValue = $('input[name="thislink"]').val();
window.open('/selection/yes/?value='+linkValue);
});
Html:
<form id="urlarticle">
<input type='text' name='thislink'/>
<input type='submit' value='Select'/>
</form>
What this does is:
- use jQuery to select the
input
that has aname
attribute with valuethislink
- take the value that was written in it
- append that value to your link