Podrias coger ese input en JavaScript, por ejemplo a traves de su id con getElementById, y luego utilizar su propiedad value, para asignarle el valor que quieras
Código HTML:
<input type="text" id="caja">
<script>
var caja = document.getElementById("caja");
caja.value="variable";
</script>