0
Answer

window.scrollBy(500,0) not working in windows 8

Jyot

Jyot

12y
1.4k
1
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.