如何禁用ASP.Net中的最小化按钮? [英] How to disable minimize button in ASP.Net?

查看:61
本文介绍了如何禁用ASP.Net中的最小化按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在网站上打开一个弹出窗口.

我想禁用最小化按钮,以便将焦点放在弹出窗口上.
我试过<body onblur="this.focus()">.

但这没用.

Hello,

I am opening a popup window in my website.

I want to disable minimize button so that focus on popup window.
I had tried <body onblur="this.focus()">.

But it didn''t work.

推荐答案

不,您无法控制新窗口的最小化"按钮(除非
您正在谈论Microsoft特定的模式对话框)



使用仅适用于IE的showModalDialog.


如果您从代码中调用以下给定的函数,它将打开一个模式窗口,该窗口将没有最小/最大按钮,但不会处理关闭按钮.

No, you have no control over the minimize button of a new window (unless
you''re talking about Microsoft specific modal dialogs)



Use showModalDialog which is only applicable to IE


If you call the function given below from your code, it will open a modal window, which will not have the minimize/maximize buttons, but it does not take care of the close button.

function showWin() {  var newlookup = window.showModalDialog("http://www.yahoo.com",  "", "","status=0;help=0;dialogHeight=" + 400 + ";dialogWidth=" +600 ) }




有关showModalDialog的更多详细信息,

showModalDialog




For more details of showModalDialog,

showModalDialog


这篇关于如何禁用ASP.Net中的最小化按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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