Script per la stampa di una pagina Html
<html> | |
<head> | |
<style type="text/css" media="screen"> | |
a { | |
color: #33CCCC; | |
} | |
</style> | |
<!--SCRIPT--> | |
<script> | |
<!-- | |
//SoftShell Solutions | |
//http://www.softshell.net/ | |
//PrintPage - a browser friendly print function | |
function printpage() { | |
if (window.print) { | |
window.print(); | |
} else { | |
alert('To print this page, select Print from the file menu.'); | |
} | |
} | |
// --> | |
</script> | |
<!--/SCRIPT--> | |
</head> | |
<body bgcolor="#060702"> | |
<div align="center"> | |
<!--PAGINA--><br/> | |
<a href="#" onClick="printpage(); return false">Print Me!</a> | |
<!--/PAGINA--> | |
</div> | |
</body> | |
</html> link originale: view-source:http://www.morpheusweb.it/html/scripts/javascript/vari/demo/stampa/demo.asp |
Commenti
Posta un commento