logoalt Hacker News

adrian_btoday at 8:40 AM2 repliesview on HN

For me the fact that dickovers are possible is a bug in all JavaScript interpreters.

In my opinion, any decent browser should make impossible both dickovers and also other related hostile actions, like the possibility for a Web page to modify the right-click menu or to prevent text selection.

Unfortunately completely disabling scripts is rarely a solution, because many sites do not work at all. But the kind of actions mentioned above never serve a useful purpose for the user, so they should be ineffective and their should be no way for the hostile site to determine whether they work or no.

Modal windows may sometimes be useful in applications that are controlled by myself, but it should always be possible to override them in externally-controlled applications, like when browsing Internet sites.


Replies

watusernametoday at 3:55 PM

CSS is what allows dickovers to work, not JS, and pure-CSS dickovers are possible [0] :P

[0]: https://hunzaboy.github.io/Light-Modal

mikepurvistoday at 9:02 AM

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?

show 1 reply