问题描述
嗨所有,
i有设计页面,在同一页面上onbuttonclick我称之为javascript下面写的函数
window.open(popurl,_Self,height = 350px,宽度= 550px,screenX = 50,左= 150,screenY = 150,top = 50,status = no,scrollbars = yes);
这个工作正常,在同一个窗口打开。在这个新窗口中我有按钮当我点击按钮我重定向到新页面说Response.redirect(demo.aspx);但是打开它时需要使用前一页的相同内容,即页面尺寸看起来很小。
请做必要的解决方案。
谢谢
hi All,
i have design page, in same page Onbuttonclick i called function written in javascript below line
window.open(popurl, "_Self", "height=350px,width=550px,screenX=50,left=150,screenY=150,top=50,status=no,scrollbars=yes");
this is working fine and opening in same windows. in this new window i have button when i click on button i redirect into new page say Response.redirect ("demo.aspx"); but while opening it take same propety of previous page i.e page size look small.
kindly do needfull solution.
Thanks
推荐答案
window.resizeTo(width, height);
将调整页面大小。假设您想要完整大小的demo.aspx页面。然后你应该在demo.aspx页面的window.onload方法上写下面的javascirt。
will be resize the page. Suppose you want full size of page demo.aspx. Then you should write the following javascirt on window.onload method of that demo.aspx page.
<script type="text/javascript">
window.onload = function () {
var width=1200;
var height = 1200;
window.resizeTo(width, height);
};
</script>
它会根据指定重新调整浏览器的大小。你需要调整宽度和高度值。
It will re-size the browser as specified. You need to adjust the width and height value.
这篇关于页面大小问题高度宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!