Jyot

Jyot

  • NA
  • 9
  • 10.6k

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

Aug 17 2012 1:56 PM
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.