Internet Browser: Difference between revisions

Corrected screen size info and document example
m Correction correction
Line 963: Line 963:
  document.addEventListener("scroll", function () {
  document.addEventListener("scroll", function () {
     window.scrollTo(40, 215);   
     window.scrollTo(40, 215);   
  }, 50);
  });


This automatically resets the position if the user accidentally scrolls the page. Zooming should probably also be disabled by adding <code>user-scalable=no</code> to the <meta> viewport element.
This automatically resets the position if the user accidentally scrolls the page. Zooming should probably also be disabled by adding <code>user-scalable=no</code> to the <meta> viewport element.