Ciao ragazzi,
ho questo codice per stampare un file pdf da un bottone:
<html>
<head>
<script>
function doit() {
var x = document.getElementById("doodad")
x.click();
x.setActive();
x.focus();
x.print();
}
</script>
</head>
<body>
<button onclick="doit('doodad')" id=button1 name=button1>howdy</button>
<embed id="doodad" src ="test.pdf" width="100%" height="100%">
</script>
</body>
</html>
Funziona benissimo su IE7, ma su Firefox niente.
Qualcuno sa dirmi come devo modificarlo?
Grazie, ciao!!!