<script> function show() { link = document.getElementById('link').value; document.getElementById('html').innerHTML = '<a href="http://mysaite/"><IMG src="'+link+'" border=0></IMG></a>'; } </script> <input type="text" name="link" value="http://link"> <input type="button" value="Шмяк!" onclick="show()"> <div name="html"></div>