Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
0 votes
0 answers
35 views

Here's my code: $.ajax({ url: link, type: 'get', data: {}, success: function(res) { document.title = res.title; document.description = res.description; $('body').html(res.html); ...
NomadCode's user avatar
0 votes
0 answers
34 views

Is it possible to check if the browser is loading a page through a page refresh or URL access, or if it is navigating through the browser history (back/forward)? I'm building an app with Nuxt where I ...
Bernat's user avatar
  • 1,348
0 votes
1 answer
47 views

I'm creating a SPA that has multiple pages that have some hierarchy. The user can click on any item in a list to see details (going forward) and on the details page can click a "back" button ...
ygoe's user avatar
  • 20.7k
1 vote
0 answers
96 views

https://stackblitz.com/edit/stackblitz-starters-cdffrt The issue is after navigating to the person details component, if you refresh the page, this.person doesn't seem to know that it's a Person class,...
Zachary Richardson's user avatar
1 vote
1 answer
118 views

I found that popstate fires when the user presses back or forward button. But that does it mean it is the default behaviour of the browser. Suppose a website doesn't use SPA, clicking on a link loads ...
quest's user avatar
  • 21
0 votes
1 answer
45 views

I need your help, I have a parent A page with an integrated B iframe. When I click on a link in the B iframe, I want to retrieve the title and url of the clicked link and pass it to the main page to ...
Alexandre's user avatar
2 votes
0 answers
499 views

After a user has logged in or out, and the browser back button is used, the page is restored from the bfcache, The page is restored even when a logged out user isn't supposed to access this page. I ...
Patrick Miah's user avatar
0 votes
0 answers
136 views

I have a TMS WEB Core application with code all over the place that changes the URL via the window.history.pushState function. Is there a way I can detect when the URL has changed? Let's say for ...
Shaun Roselt's user avatar
  • 4,391
0 votes
1 answer
192 views

I'm working on a project using vanilla JavaScript. I want to build a spa(single page application) router. If you visit the pages by clicking on one of links, the screen is not re-rendered. But if you ...
myeongin's user avatar
0 votes
2 answers
2k views

In the react component below I want to display the current value of a url query param after updating it. Something like this is straightforward to do with react-router, but I am trying to implement ...
D2024's user avatar
  • 13
-1 votes
1 answer
54 views

The History API is being used to rewrite/set the displayed address as part of SPA navigation, for example: history.pushState({}, `example`, `/example.htm`); The example.htm page does not exist on the ...
Ely's user avatar
  • 1
8 votes
1 answer
508 views

As far as I can tell, it is in part determined by the HTML spec's History API1, specifically the value of history.scrollRestoration. Quoting the HTML spec's scroll restoration mode paragraph: "...
toraritte's user avatar
  • 8,725
-1 votes
1 answer
238 views

I would like to create custom history back and forwards buttons using a React hook. For reference, in case it helps, I'm trying to replicate the behaviour that can be seen in Spotify's web app. Their ...
Alex's user avatar
  • 1,463
0 votes
1 answer
705 views

We have a survey in a single-page app. Because it's a survey, we want to allow users to go back but not forward in history. That is, if they change an answer in the "past" it may affect ...
thinnerwhiterduke's user avatar
0 votes
1 answer
457 views

Quick note: this question is not seeking to scroll when a linked is clicked, and is not seeking to restore the scroll position when a link is clicked, but rather to add new items to the browser state ...
mikemaccana's user avatar

15 30 50 per page
1
2 3 4 5
41