Se puede hacer fácilmente en javascript. Algo así:
javascript:
Si no funcionase con el document.getElementById("contenido").href="http://www.google.es/?q="+texto, target="contenido")
HTML:
Lo he hecho directamente aquí en el foro y no lo he probado, así que puede que tenga algún error, pero básicamente es algo así.
javascript:
Código (javascript) [Seleccionar]
<script>
function abrir(){
texto=document.getElementById('caja').value;
document.getElementById("contenido").href="http://www.google.es/?q="+texto;
}
</script>
Si no funcionase con el document.getElementById("contenido").href="http://www.google.es/?q="+texto, target="contenido")
HTML:
Código (html4strict) [Seleccionar]
<input type="text" id="caja" /> <input type="button" value="Buscar" onclick="abrir();" />
<p>
<iframe id="contenido" name="contenido" width="600" height="400"></iframe>
</p>
Lo he hecho directamente aquí en el foro y no lo he probado, así que puede que tenga algún error, pero básicamente es algo así.