1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<HTML>
<HEAD>
<TITLE>Nouvelle fenêtre</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function ouvrir(texte)
{
var haut = 500; // hauteur de la fenêtre (en pixels)
var larg = 500; // largeur de la fenêtre (en pixels)
var options = "toolbar=no,location=no,directories=no,status=no,"
+ "menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,"
+ "width=" + larg + ",height=" + haut;
maFenetre=window.open("jbv.html","",options); //création de la fenêtre pop
maFenetre.document.open();
maFenetre.document.write("test1 : <BR>");
maFenetre.document.write("test2 : <BR>");
maFenetre.document.close();
}
</SCRIPT>
</HEAD>
<BODY>
cliquez ici:<BR>
<FORM>
<INPUT type="button" value="Cliquez ici" onclick="ouvrir(texte.value)">
</FORM>
</html> |
Partager