javascript - Programmatically Set & Get browser Window Coordinate Values (x,y) in C# -
i know how using javascript when i'm doing postback this: window.scrollto(x, y);
. have new scenario have return exact scroll position page (page1.aspx) page (page2.aspx). want able scroll position of page 1 , store in query string of url page2 can use set scroll position when returning page1.
i choose in c# javascript not handle cross page navigation nicely. wrong though, need this. help.
you can in javascript. store value in local storage , clear when used.
loadsetting = function (key, value) { value = window.localstorage.getitem(key); return value; } savesetting = function (key, value, bauto) { window.localstorage.setitem(key, value); } clearsetting = function (key) { window.localstorage.removeitem(key); }
Comments
Post a Comment