<html>
<head>
<script language="JavaScript">
function window_ok_cancel() {
mywindow=window.open("","confirmation","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhisto
ry=0,width=285,height=255,screenX=500,screenY=100" );
mywindow.document.write("<html><head>" );
mywindow.document.write("<title>Test PopUp</title>" );
mywindow.document.write("</head>" );
mywindow.document.write("<body>" );
mywindow.document.write("Voulez-vous vraiment supprimer "+document.getElementById("T_quelquechose" ).value+ "?" );
mywindow.document.write("<form>" );
mywindow.document.write("<input type='button' value='Annuler' onClick='opener.action1(\"Cancel\" );window.close()'>" );
mywindow.document.write("<input type='button' value='OK' onClick='opener.action1(\"OK\" );window.close()'>" );
mywindow.document.write("</form>" );
mywindow.document.write("</body></html>" );
}
function action1(v)
{
if (v == "OK" ) {
// alert("submit" );
document.F_saisie1.submit();
}
}
</script>
</head>
<body>
<form id="F_saisie1" name="F_saisie1" method="get" action="suppression1.htm">
Test d'ouverture d'une fenêtre popup de confirmation
<p>
<input type=text id="T_quelquechose" name="T_quelquechose">
<p>
<input type="button" value="Supprimer" onClick="javascript:window_ok_cancel()">
</form>
</body>
</html> |