Ver original<input type='text' id='campo' /><script type='text/javascript'> document.getElementById('campo').value = document.getElementsByTagName('h2')[0].innerHTML;</script>