Window.scrollBy(500,0) not working in windows 8
I am using javascript, html5 and css only. When I go back to previous page it should point to location where I was. I used document.getElementById("id").focus(); but as page gets reload it shows bad effect. I want window to automatically scroll smoothly to previous location after coming to previous page. window.scrollBy(500,0) and window.scrollto(500,0) are not working in windows 8.

Answers
Know the answer? Post it. Somebody with the same question will find it here.