Hola:
Prueba esto:
Código:
<html>
<head>
<script>
function prever(f) {
ventana = window.open("", "popup", "width=400,height=250");
action_guardado = f.action;
target_guardado = f.target;
with (f) {
action = "popup.php";
target = "popup";
submit();
action = action_guardado;
target = target_guardado;
}
}
</script>
</head>
<body>
<form action="../articulos/receptor.php" name="fo" method="get" target="_self" >
<input type="text" name="prueba" value="Ok" />
<button type="button" onclick="prever(this.form)" >vista previa</button>
<button type="submit" >enviar</button>
</form>
</body>
</html>
Cópialo y pégalo en esta página:
Probador de scripts
... en la pestaña Editar... y luego pulsa el botón "en ventana"...
Si sigue fallando, dinos el navegador que usas... ¡o has usado otro código!...
Saludos