<form> <input name="a" type="text" /> <input onclick="window.open('to.html?a=' + this.parentNode.a.value)" type="button" value="Send" /> </form>