NayeemKhan
NayeemKhan

Reputation: 1230

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

Upvotes: 0

Views: 2001

Answers (4)

i_am_jorf
i_am_jorf

Reputation: 54600

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.

Upvotes: 2

Tibi
Tibi

Reputation: 3875

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.

Upvotes: 1

Francisco
Francisco

Reputation: 4101

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.

Upvotes: 1

Matt Ball
Matt Ball

Reputation: 359816

This is definitely not possible without an extension (and even then, I'm not sure if an extension can).

Upvotes: 2

Related Questions