The following HTML page should open http://www.seznam.cz in a new window and then open the Print dialog to allow printing it.
<html>
<head>
<script>
function printPage()
{
var newWindow = window.open("http://www.seznam.cz", "seznam");
newWindow.document.close();
newWindow.focus();
newWindow.print();
newWindow.close();
}
</script>
</head>
<body>
<a onClick="printPage(); return false;" href="">Print</a>
</body>
</html>
However it only prints a blank page with "about:blank" in the top right and the current date and time in the bottom right corner.
Why doesn't it work as expected?