您的位置:首页 > Web前端 > JavaScript

通过js实现弹出窗口进行打印

2010-06-23 13:14 375 查看
function rundiff()
{
var aa=document.getElementById("hidvlaue").value;
if(aa =="1")
{
p();
}
else
{
retUrl();
}
}
function p()
{
var p1=document.getElementById("d1").style.display="none";
window.print();
}
function retUrl()
{
window.open('../RoleAndPwoer/UserDetail.aspx?SID=1','','toolbar=0,menubar=0,location=0,status=0,left='+(window.screen.width-800)/2+',top='+(window.screen.height-600)/2+',height=600px,width=800px,scrollbars=yes')
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐