这是我第一次在HTML5中使用以下Javascript编码,但我的打印页面始终为空白并显示“about:blank”。任何人都可以帮助我吗?我编码的按钮如下:
<a href="javascript:window.print()" class="icon-button print" target="LINK TO ANOTHER PAGE"><i class="icon-printer"></i><span></span></a>
答案 0 :(得分:-1)
the print function prints the content of the actual page,
to print the other page you have to to execute the print on the load of that page like this :
<body onload="window.print()">