francesco25
22-10-2003, 18:26
ciao
come si fa in HTML a fare un POPUP?
cioč ho la mia paginetta scritta in html, voglio fare in modo che quando la aprono salta fuori il POP come devo fare? esempi di codice?
thx :)
igorlazunna
23-10-2003, 09:13
per esempio....
Nel tuo file index.html:
<html>
<head>
<title>Test POP UP</title>
<script language=javascript>
function apri_popup(thefile)
{
window.open(thefile, '_blank','scrollbars=yes,resizable=yes,width=100,height=300,titlebar=no,status=no,location=no,menubar=no,toolbar=no')
}
</script>
</head>
<body onload=apri_popup('popup.html');>
<h3>Il popup si apre</h3>
</body>
</html>
quindi nel file popup.html
<html>
<head>
<title>Il popup</title>
</head>
<body>
Ecco il<br>
PopPup<p>
<a href=javascript:void(0); onclick=window.close();>Chiudi</a>
</body>
</html>
Metti tutto nella stessa directory e fai una prova.
ciao
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.