Una domanda (mi scuso se è OT rispetto al titolo del thread):
in questo codice
<script language="javascript">
<!--
function apri(cosa, altezza, larghezza) {
var pop=window.open('about :blank', 'popwin', 'width='+larghezza+',height='+altezza);
// non c' è spazio tra about e :blank
pop.document.write('<html><head><title></title></head><body style="margin:0px;padding:0px">');
pop.document.write('[img]'+cosa+'[/img]');
pop.document.write('</body></html>');
pop.document.close();
pop.focus();
}
come faccio ad impostare il topmargin e il leftmargin? Vorrei centrare la pop up allo schermo.

Rispondi quotando