javascript - Remember scroll position only if it is the same page -


I am doing a quote website and I have about 300 quotes about 30 pages (10 quotes on the page). Every quote I have a button, when I like a bidding javascript code, remembers scrolling status. But the problem is that when I go to the next page, this code remembers scroll position, but I think if the page is different from the previous one (for example: if the user quotes page quotes.php? Page Like = 3 Javascript code remembers the scrolling status of the website as when the button is pressed, but if the user goes to the bottom of the page and uses the navigation button scroll position If the cookie was created then it should be removed so that the page scroll starts from 200 to 0, for example.

There is an idea on how my website looks at the top of the 0 scroll.
This is an idea how my website looks like on the Max Scroll

The scrolling position is used in the script

  & lt; body onunload = "unloadP ('UniquePageNameHereScroll')" onload = "loadP ('UniquePageNameHereScroll')" & gt; 



    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -