问题描述
大家好我想用main.aspx上的按钮打印print.aspx窗口我该怎么做?我尝试ff脚本:
我尝试过:
function printExternal(print.aspx){
var printWindow = window.open(url,'Print','left = 200,top = 200,width = 950,height = 500,toolbar = 0, resizable = 0');
printWindow.addEventListener('load',function(){
printWindow.print();
printWindow。 close();
},true);
}
Hello guys i want to print "print.aspx" window using my button on my "main.aspx" how will i do this ? i try the ff script:
What I have tried:
function printExternal(print.aspx) {
var printWindow = window.open( url, 'Print', 'left=200, top=200, width=950, height=500, toolbar=0, resizable=0');
printWindow.addEventListener('load', function(){
printWindow.print();
printWindow.close();
}, true);
}
推荐答案
这篇关于如何使用javascript在ASP中打印其他页面内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!