Android Chrome: window.scrollBy does nothing lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- epergola · 2020-05-22 22:05 Hi. I have this piece of code in my html Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function lr(){  a=document.getElementById("pghor");  var w = $("#div").width();  if(a.innerText==="->>>>"){    a.innerText="<<<<-";    window.scrollBy(w-50,0);    //$("html,body").scrollLeft(w-50);  }else{    a.innerText="->>>>";    window.scrollBy(-(w-50),0);  }}  It works perfectly on desktop, but not in Samsung Android Chrome. If anybody can help, i attach the html (< 300 lines). Thank you