首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

问一个javascript有关问题

2012-01-22 
问一个javascript问题functiondoPrint(){varjriddocument.getElementById(txtJRID).valuevarurlPrin

问一个javascript问题
function doPrint() 

  var jrid=document.getElementById("txtJRID").value; 
  var url='PrintCreateJobRequisition.aspx?JRID='+jrid; 
  window.open (url, '', 'height=720, width=720, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');// 这是一行 
  return false;  

在window.showDailog打开的窗口里再用window.open办法打开一窗口 
  我这样写为什么会有时有窗口弹出..有时没有

[解决办法]
你先测试下 window.open("PrintCreateJobRequisition.aspx","","height=100,width=200");看看

热点排行