<body onLoad="window.print()">
ou en mettant ce bout de script en début de page entre <head> et </head><script language="javascript"><!--window.print()//--></script>
console.log(a);// write to the browser consoledocument.write(a);// write to the HTMLalert(a);// output in an alert boxconfirm("Really?");// yes/no dialog, returns true/false depending on user clickprompt("Your age?","0");// input dialog. Second argument is the initial value
<body onLoad="window.print()">
ou en mettant ce bout de script en début de page entre <head> et </head><script language="javascript"><!--window.print()//--></script>
console.log(a);// write to the browser consoledocument.write(a);// write to the HTMLalert(a);// output in an alert boxconfirm("Really?");// yes/no dialog, returns true/false depending on user clickprompt("Your age?","0");// input dialog. Second argument is the initial value