Window Height and Window Width methods under BOM manipulation in Javscript
Window Height and Window Width methods under BOM manipulation in Javscript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testing Javsript</title>
</head>
<body onresize="mChanging()">
<script>
function mChanging(){
console.clear();
var a = window.innerHeight;
var b = window.outerHeight;
var c = window.innerHeight;
var d = window.innerWidth;
console.log("innerHeight : " + a );
console.log("outerHeight : " + b );
console.log("innerWidth : " + c );
console.log("outerWidth : " + d );
}
</script>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!