1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<script language="javascript">
var firstclick=0;
var tafenetre;
function TestFenetre() {
if(firstclick == 0) {
firstclick=1;
tafenetre=window.open("menu.aspx", "tafenetre", "resizable,height=700,width=700,scrollbars=1,menubar=1,location=1,status=1,toolbar=1");
}
else {
if(tafenetre.closed == false) {
tafenetre.focus();
}
else{
// la fenetre est fermée
tafenetre=window.open("menu.aspx", "tafenetre", "resizable,height=700,width=700,scrollbars=1,menubar=1,location=1,status=1,toolbar=1");return false;
}
}
}
</script> |
Partager