Ver originalvar valorTexto = document.getElementById("campo").value;location.href = "pagina.asp?nombre=" + valorTexto;