News for hackers. Stuff that matters.
Re:You don't need a modal window by dataviz1000 on Wednesday May 24, 2023 @09:26AM (#36057705)
If you are working with an single page app, you can open a modal window and change the href without navigation by calling `history.pushstate`.

``` history.pushState({}, "", "/new-url"); ```

Moreover, modals serve one very important UI purpose in that they keep the user's mind in a context.

There are no comments on this comment yet.