Newer
Older
2021-misato / getheight.js
@sasaki misato sasaki misato on 26 Nov 2021 243 bytes Add leaflet.js
/* 愛
 * getheight.js - Sample program for `onload' attribute
 */
function getHeight() {
  bodyelement = document.getElementsByTagName("body")[0];
  h = bodyelement.offsetHeight;
  alert("高さ="+h)
}
getHeight();
window.onload = getHeight;