Hola que tal.
Te dejo este ejemplo pero no tiene que ver con javascript.
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="form1" name="form1" method="post" action="1.php" target="ventana"> direccion
<input type="text" name="pag" id="pag" /> <input type="submit" name="button" id="button" value="Enviar" /> <iframe width="100%" height="500" name="ventana" id="ventana" src="http://<?php echo $_POST['pag']; ?> ">
</iframe>
Nota 1.php es el nombre original de la página
Saludos