I know about document.referer, and that’s not what I’m looking for. This may be a solution, but I want to get it in local mode without using a server.
document.referer
I click the new state in the current URL of my page using history.pushState('','','#test')
history.pushState('','','#test')
I will go to the next page.
And now I want to get the url, but history.previous was deleted from Gecko 26 .
history.previous
Is there any other way to get this value other than using cookies or sessionStorage?
So, my problem was that for this purpose there are no options in a local without a server environment.
, , , , , , , .
sessionStorage.setItem('foo',val) sessionStorage.getItem('foo').
sessionStorage.setItem('foo',val)
sessionStorage.getItem('foo')
- , :
http://server.com/next-page-address/whatever.html?prevData=RequiredStateData
, , , , RequiredStateData . , .
RequiredStateData
Source: https://habr.com/ru/post/1657724/More articles:* ngFor does not work in angular 2 - angularResizing a div with a drag and drop handle on rotation - javascriptMultiline input in Apache Spark using java - multilineFormatting numbers by type in an input field in Angular2 with double binding - inputHow to run tests during debugging - unit-testingDent detection after hail - image-processingR Shiny: How to write a loop for registerEvent - loopsIdris Tactics - idrisIs there a way to run generic applications in Firebase Hosting? - javascriptActionController :: RoutingError: uninitialized constant Api :: V1 :: ApiController - ruby | fooobar.comAll Articles