Posts by user141973 • 31 points
1 post
-
3
votes2
answers197
viewsA: Why window.innerheight/ window.innerWindow does not work with Document.getelementsbytagname('canvas');
Because getElementsByTagName returns a list of elements, if you want to take some property of the first element, you have to use: const canvas = document.getElementsByTagName('canvas');…