vabbé, avevo voglia di fare un ripasso, processa e gioca con questo;
dai anche un'occhiata al modellino che ho postato QUI per come codificare una pop-up di tipo "scritto".
Togli i trattini che il sistema ha inserito in due <a href="java-script: ;">
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Modal Windows</title>
<script type="text/javascript">
<!--
function lanciaPopUp_caricante() {
window.open('http://forum.html.it/', '', 'top=120, left=200, width=320, height=280');
}
function lanciaPopUp_scritta() {
win = window.open('', '', 'top=120, left=200, width=320, height=280');
win.document.write('Qui puoi scrivere un Documento HTML <html><head> ');
}
function displayDIV(){
document.getElementById("mod").style.display="block";
}
function hideDIV(){
document.getElementById("mod").style.display="none";
}
-->
</script>
</head>
<body bgcolor="#D0D090" text="#800000">
<div align="center">
<table><tr>
<td>window.open()<hr></td>
<td rowspan="3">&nbsp; &nbsp;</td>
<td>DIV<hr></td>
</tr><tr>
<td>
<input type="button" value="carica file ext."
onclick="lanciaPopUp_caricante();">
</td>
<td rowspan="2">
Apri DIV
</td>
</tr><tr>
<td>
<input type="button" value="HTML interno"
onclick="lanciaPopUp_scritta();">
</td></tr>
</table>
<div id="mod"
style="position: absolute; top: 120px; left: 200px; width: 320px; height: 280px;
background-color: #A0A0EF; display: none; border: 2px solid #800000;">
Chiudi DIV
</div>
</div>
</body>
</html>