logoalt Hacker News

mikepurvistoday at 9:02 AM1 replyview on HN

Genuine question, what is it that the JS implementation or DOM or anything the in the browser can do to permit desired modal popover content like dropdown menus and tooltips and floating nav bars while somehow preventing dickovers?


Replies

adrian_btoday at 10:18 AM

Like I have said, in a browser there should not exist truly modal windows.

The cases when modal windows are used abusively are far more numerous than the cases when they are useful.

Perhaps there should be a way to warn the user when moving the focus from a window that is supposed to be modal, but if the user insists it should be possible to disregard that a window is intended to be modal.

Also, it should be possible for the user to move any window as desired. It should not have been possible for windows to move on their own and to prevent the user from moving them. A script should also not be able to move the mouse cursor or any other kind of cursor.

A browser must always treat a script as potentially hostile, so all these facilities that can be used by a script to mess with the browser GUI should never have existed.