This will work in IE5+ (not IE4 and not NN4+) I don't know about NN6, but I think it does.
The alertbox in the "else" will tell the users with older browsers how to print manually.
----put this code in the popup file------------
<script language="javascript">
function PrintPage() {
if (window.print)
{
window.print();
}
else
{
alert('Your browser does not support automatic printing.\nPlease select "Print" from the file menu\n\nor press Ctrl + P');
}
}
</script>
<a href="javascriptrintPage()">print this page</a>
-------------end code------------
Hope this helps,
Erik
<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.