I need to preserve the window (i.e., browser) position between sessions for a give web page. So a user opens a particular web page (an ASP.NET page) and moves it around then closes it. When the user opens that page again I want it to open at the same location that it was last at. I can get the windows position using window.screenLeft and window.screenTop and preserve this in a cookie. I could then move the window to the former position on an onload event. What I dont know what to do is when to trigger this process. What I need is something like an onmove event to trigger the process when the user moves the window. Does such an event exist? Or is there some better way to do this? I am using ASP.NET 2.0, Internet Explorer and JavaScript.
Thanks!
Start Free Trial