Here is the code that generates the link from input when the button is clicked. How to make it so that when you click it does not generate, but immediately follow the link?
<form name="idform"> <input type="text" name="id" value="Введите id"> <input type="button" value="ок!" onclick="document.getElementById('x').innerHTML='<a href=http://ya.ru/?id='+escape(document.forms['idform'].elements['id'].value)+'>Ссылка</a>'"> </form> <p id="x"></p>