Skip to main content
Share Your Experience: Take the 2024 Developer Survey
41 votes

Why don't browsers show a dialog when closing a tab?

Because the cons of disrupting the user's flow by always showing a dialog is too large. Tabs are not as precious, they are opened and closed as many times as needed during a session. Even if the user ...
Nicolas's user avatar
  • 5,608
40 votes
Accepted

After navigating from page A to page B, if a user goes back is it better to send them to the top of page A or scroll to where they were?

Based on my experience with a similar question where I did some user-research (questionnaires etc.), they always reported they expect to be put back to the position they have been last on the previous ...
Johannes's user avatar
  • 541
24 votes

After navigating from page A to page B, if a user goes back is it better to send them to the top of page A or scroll to where they were?

Every browser I've ever used returns you to your previous in-page location on Go Back. I'd expect that's what users will expect other systems to do, and that different behavior will be disorientating. ...
eukras's user avatar
  • 341
19 votes

Why don't browsers show a dialog when closing a tab?

Browsers strive to be as easy to use and smooth as possible. Look at browsers just being environments for running web apps (I'd argue, these days we don't really deal with websites or portals - ...
exp's user avatar
  • 2,598
9 votes
Accepted

Why don't browsers show a dialog when closing a tab?

Pinned tabs The major browser vendors have chosen to address the problem of unintended tab closure by offering the "pin tab" feature: Firefox: Mozilla Support: Pinned Tabs - keep favorite ...
Scott McPeak's user avatar
9 votes

Why don't browsers show a dialog when closing a tab?

Before getting into the why, let's establish that those modals that you mention are an error prevention measure. But are all errors equal? No. There are two types of errors: Slips and mistakes. Slips ...
Angel's user avatar
  • 173
8 votes

After navigating from page A to page B, if a user goes back is it better to send them to the top of page A or scroll to where they were?

Overall, the other answers are correct: in the absence of other reasoning, you should hew as closely as possible to native browser/HTML behavior, which is to go back to the exact position. But as ...
SPavel's user avatar
  • 659
8 votes

After navigating from page A to page B, if a user goes back is it better to send them to the top of page A or scroll to where they were?

The right behavior is what the user's user-agent does for them in the absence of any action by the site trying to interfere with that. Conventionally, that is returning to the exact position they were ...
R.. GitHub STOP HELPING ICE's user avatar
5 votes

Why don't browsers show a dialog when closing a tab?

Beyond international rules or statutes, I believe that the behavior is still exactly the same as that of any application, and a browser is an application. When opening a document or creating a new one ...
Danielillo's user avatar
  • 19.1k
2 votes

Why don't browsers show a dialog when closing a tab?

If there is only one tab, then the close button is unambiguous. Close the browser (window)! But if there is more than one tab, it is possible that an user will misinterpret the window close with the ...
Kroltan's user avatar
  • 131
1 vote

Why don't browsers show a dialog when closing a tab?

If the page in the tab has unsaved data, it's up to the application behind that page to do this. For instance, as I type this answer into ux.stackexchange.com, I can click on the X to close the tab. A ...
Kaz's user avatar
  • 980

Only top scored, non community-wiki answers of a minimum length are eligible