屏幕尺寸的window.open问题 [英] window.open problem of screen size

查看:111
本文介绍了屏幕尺寸的window.open问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我有一种方法应该打开一个窗口
但是,我需要窗口具有最大的屏幕尺寸才能覆盖上一个窗口或在新标签页中打开.
我正在使用IE8

这是我的代码,它会弹出一个小弹出窗口

Dears,

i have a method that should open a window
however, i need the window to have maximum screen size to cover the previous window or open in a new tab.
i''m using IE8

and here''s my code that''s opening a small pop up

private void OpenNewWindow(string url)
        {
 ScriptManager.RegisterStartupScript(this, typeof(string), "OpenWindowScript", "window.open('"+url+"');", true);
}



此致



Regards,

推荐答案

hi,
您可以通过以下方式提供高度和宽度


u can provide height and width by following way

var strHelp = 'dialogHeight=430px;dialogWidth=400px;scroll=no;resizable=yes;toolbar=no;status=no;menubar=no;';

 window.open("page.aspx?" + QueryStr, "popup", strHelp, null);


这篇关于屏幕尺寸的window.open问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆