by clementmas on 12/6/23, 2:13 AM with 26 comments
by snailmailman on 12/6/23, 2:36 AM
I hate when I hit back, but instantly redirect to the same page. This is so frustrating when it happens. And it happens even on major sites. (Microsoft’s official community “answers” forums have given me this issue lately. Fills up search results and then traps you there)
by akersten on 12/6/23, 2:33 AM
by ggregoire on 12/6/23, 3:51 AM
> Chrome 120 brings the solution with CloseWatcher, a new API for directly listening and responding to close requests.
> watcher.addEventListener("close", () => document.querySelector("#sidebar").classList.remove("open"));
Couldn't they add an HTML attribute onCloseRequest?
Slightly related, I wish there was an attribute "onClickOutside" so we could close modals and dropdown menus without manually adding an event listener on the window and checking if the click wasn't inside the element.
by chrismorgan on 12/6/23, 3:57 AM
by clementmas on 12/6/23, 2:32 AM
by rasz on 12/6/23, 6:33 AM
How about my User Agent working for me instead? and doing exactly what I want and not some web page?
by tuatoru on 12/6/23, 3:29 AM