Printing contents of another page
问题 In the following link <a href=\"#\" onclick=javascript:print(\"\") style=\"color:blue;\">Print</a>" <script> function print() { //How to print the contents of another page } 回答1: I think you can print the contents of the current page not external page. 回答2: I know it´s an old question, but you can do it like this: function printExternal(url) { var printWindow = window.open( url, 'Print', 'left=200, top=200, width=950, height=500, toolbar=0, resizable=0'); printWindow.addEventListener('load',