Vorrei fare una pop-up cromeless, cioè senza niente (barre del browser, srollbar ecc..), tipo full-screen ma di dimensioni impostabili.. ho 2 esempi uno con tantissimo codice, ed uno con solo una riga di codice e apparentemente fanno la stessa cosa..mah!
quello più semplice è:

window.open('finestra.htm','longu','fullscreen=yes '); return false;

Mentre l'altro che ho trovato qua in giro:


<HTML>

<HEAD>
<TITLE>HTML.it - il sito italiano sul Web publishing</TITLE>

<style>
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline }
</style>

<script language="Javascript">

var windowW=214
var windowH=270

var Yoffset=0

var windowStep=5
var moveSpeed=10

Xmode="right";

Xoffset=30;

var urlPop = "popup.htm"

var title = "Prova pop up";

var autoclose = true

var windowX = (screen.width/2)-(windowW/2);
if (Xmode=="left") windowX=0+Xoffset;
if (Xmode=="right") windowX=screen.availWidth-Xoffset-windowW;
var windowY = (screen.availHeight);
var windowYstop = windowY-windowH-Yoffset;
var windowYnow = windowY;

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false

function openWin(){
if (beIE){
PFW = window.open("","popFrameless","fullscreen,"+s)
PFW.blur()
window.focus()
PFW.resizeTo(windowW,windowH)
PFW.moveTo(windowX,windowY)
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
PFW.document.open();
PFW.document.write(frameString)
PFW.document.close()
} else {
PFW=window.open(urlPop,"popFrameless","scrollbars, "+s)
PFW.blur()
window.focus()
PFW.resizeTo(windowW,windowH)
PFW.moveTo(windowX,windowY)
}
PFW.focus()
if (autoclose){
window.onunload = function(){PFW.close()}
}
movePFW();
}

function movePFW(){
if (document.all){
if (windowYnow>=windowYstop){
PFW.moveTo(windowX,windowYnow);
PFW.focus();
windowYnow=windowYnow-windowStep;
timer=setTimeout("movePFW()",moveSpeed);
}else{
clearTimeout(timer);
PFW.moveTo(windowX,windowYstop);
PFW.focus();
}
}else{
PFW.moveTo(windowX,windowYstop);
}
}

</script>



</HEAD><BODY BGCOLOR="white" vlink="blue" link="blue" onLoad="openWin()">
</body>
</html>

Che differenza c'è?
Cosa devo fare per poter impostare le dimensioni della finestra?
Ho provato ad aggiungere width=200, height=200 nel campo dei parametri del metodo open ma... nisba! Niente da fare..
Help!!!
Grazie belli!
Ciao

Massimo