A voir également:
- Bouton ouvrir et fermer
- Comment ouvrir un fichier epub ? - Guide
- Ouvrir fichier .bin - Guide
- Ouvrir fichier .dat - Guide
- Ouvrir avec - Guide
- Comment ouvrir un fichier docx ? - Guide
1 réponse
Voici un exemple :
Page.html
<html>
<head>
<title>Test</title>
<script>
var newWin;
function openWin() {
this.newWin = window.open("wait.html","fenetre2","toolbar=yes,location=yes,menubar=no, height=402, width=359");
}
function closeWin() {
this.newWin.close();
}
</script>
</head>
<body>
<input type="button" onClick="javascript:openWin();" value="ouverture popup" />
<input type="button" onClick="javascript:closeWin();" value="fermeture popup" />
</html>
wait.html
<html>
<head />
<body>
Changement en cours...
</body>
</html>
Page.html
<html>
<head>
<title>Test</title>
<script>
var newWin;
function openWin() {
this.newWin = window.open("wait.html","fenetre2","toolbar=yes,location=yes,menubar=no, height=402, width=359");
}
function closeWin() {
this.newWin.close();
}
</script>
</head>
<body>
<input type="button" onClick="javascript:openWin();" value="ouverture popup" />
<input type="button" onClick="javascript:closeWin();" value="fermeture popup" />
</html>
wait.html
<html>
<head />
<body>
Changement en cours...
</body>
</html>