asp.net中的子窗口 [英] Child Window in asp.net
本文介绍了asp.net中的子窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我显示的是在单击按钮时打开子窗口.
为此,我使用JavaScript代码作为
<code>window.open(link,"myWindow", "menubar=no,location=no,Addressbar=no,toolbar=false,scrollbars=no,status=0,top = 0, left = 0,resizable=no, alwaysraised=yes,titlebar=no, height=550, width=400, top=300, left=300");</code>
这是在Internet Explorer中隐藏地址栏,而不是在Mozilla Firefox中.
但是现在我想隐藏地址栏和标题栏.
谁能建议mw这个代码
谢谢
解决方案
请使用以下内容:
如果您想显示地址栏,则将位置设置为= 1,否则将位置设置为0
window.open(链接," ,"
寻找全屏,标题栏,可调整大小属性!
详细了解一下: Window.open方法 [ ^ ]
对于Firefox,请点击此处:
https://support.mozilla.com/zh-CN/forum/1/120127 [ ^ ]
许多人报告说,在"Firefox 3"窗口中.打开可调整大小"选项不起作用.
hello all
i am showing opening a child window on a button click.
for this i am using JavaScript code as
<code>window.open(link,"myWindow", "menubar=no,location=no,Addressbar=no,toolbar=false,scrollbars=no,status=0,top = 0, left = 0,resizable=no, alwaysraised=yes,titlebar=no, height=550, width=400, top=300, left=300");</code>
this is hiding address bar in internet explorer but not in Mozilla Firefox.
but now i want to hide the address bar and title bar.
can anyone please suggest mw the code for this
thanks
解决方案
Please use following:
if you would like to display Address bar then set location=1 else location=0
window.open (link, "WindowName","location=1,status=1,scrollbars=1, width=100,height=100");
Thanks,
Imdadhusen
Look for fullscreen, titlebar, resizeable property!
Have a look at this for full detail: Window.open Method[^]
For Firefox, look here:
https://support.mozilla.com/en-US/forum/1/120127[^]
Lots of people have reported that in ''Firefox 3'' window.open resizable option is not working.
这篇关于asp.net中的子窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文