javascript - How would I view console log of this code? -
I am trying to fix any problems told in the previous stack overflow, but I am not getting any answer , So I'm trying to understand myself ...
How do I see console data from this code, so I can see how the heights are being calculated?
window.onscroll = function (events) {var offset = window.pageYOffset; Var wheight = window.innerHeight; Var html = document.documentElement; Var Dochelle = Math Max (document.body.scrollHeight, document.body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight); Var progress = offset / wheight; Document.getElementById ("SVGID_1 _") setAttribute ("y1", 93000 + progress * 93000); } jsfiddle here:
typing console.info (some_variable ) And view in your browser console. Generally typing F12
Comments
Post a Comment