jejeje pues he consegido hacer esto:
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<script>
window.resizeTo(screen.width, screen.height);
var col = 1;
var row = 1;
var win = "";
var t = 1;
while(t) {
if(win == "") {
var JS;
JS = "<script>";
JS += "function cl() {";
JS += "opener.t = 0;";
JS += "}";
JS += "<\/script>";
win = window.open('', '', 'resizable=no, scrollbars=no, status=yes');
win.document.write(JS);
win.document.write('<form name="form"><input type="text" name="cols"><br><input type="text" name="rows"><br><input type="button" onClick="cl(); window.close();"></form>');
win.document.close();
win.resizeTo(200, 200);
}
}
alert(t);
</script>
</body>
</html>
jeje a ver si le sirve a alguien
Un saludo