| |
|
|
Javascript / Ouvrir une Fenêtre
avec demande de confirmation
Ce script ouvre une nouvelle fenêtre avec
demande de confirmation.
<html>
<head>
<title>Script 2</title>
<-- Début du programme -->
<script language="JavaScript">
if(confirm('Voulez vous ouvrir la fenêtre de mon partenaire ?'))
window.open('http://www.pcspace.com/cgi-bin/clic.pl?part=DONATIEN',
'_blank', 'toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,
resizable=yes, copyhistory=yes');
</script>
<-- Fin du programme -->
</head>
<body>
<h1>Programme JavaScript ouvrant une
fenêtre de mon partenaire publicitaire</h1>
</body>
<html>
|