简体   繁体   中英

How to disable/hide the close button of firefox browser using asp.net?

I want to disable or hide the close button that we get on the top right side of the firefox browser. Please help me!

Thanks

如果没有扩展,这绝对是不可能的(即使那样,我不确定扩展是否可以)。

How about just don't do that. Nobody wants you to do that. If it is a requirement for your project, you need to tell whoever wrote the spec that you're not going to do that because it violates basic UI guidelines and they need to come up with a better solution. Also, you can't do it.

Basic browser interface is outside a page's boundaries. Only the user can hide it/remove it

That sounds like what a malicious software would accomplish. So no, you can't do it. It would require an exploit or something like that.

This is not possible, because the browser's interface is not part of the web page.

An ASP.Net application is a server side application; when the user requests a page, your application which is located on the server responds, and generates HTML code, that it sends back to the client who requested that page.

Only JavaScript executes on client side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM