如何用JAVASCRIPT控制弹出界面大小
这是按钮的代码
Response.Write( " <script> window.open( 'Projects.aspx ') </script> ");
怎么写才能控制新页的大小?
谢谢
[解决办法]
window.open( 'url ', '名字 ', 'height=200, width=350, left=100, top=150, screenX=200, screenY=200, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no, z-look=yes ')后面的是一些参数
[解决办法]
var width = window.screen.width;
var height = window.screen.availHeight;
function openprinttimesheet(selectView, UserDateTime, taskID)
{
var newwin = window.open( 'PrintTimesheet.aspx, 'fullscreen ', 'top=0,width= ' + width + ',height= ' + height + ',top=0,left=0,scrollbars=yes,toolbars=no,resizable=yes ');
newwin.focus();
if(newwin == "0 ")
{
document.forms[0].submit();
}
}