I have a scorm module which launches in a new window with resizable = 1 in window.open in my js file:
function OpenScormModuleWindow(scormModuleId, scormModu
Hope This Example Will Help You...
HTML Code:
Window Size : height and width
JavaScript Code:
function getSize()
{
var w = document.documentElement.clientWidth;
var h = document.documentElement.clientHeight;
// put the result into a h1 tag
document.getElementById('wh').innerHTML = "Width: " + w + " Height: " + h + "
";
}
Or You Can Also Use Jquery Code For Resize:
var height = $(window).height();
var width = $(window).width();
$(window).resize(function() {
var height = $(window).height();
var width = $(window).width();
console.log("height"+height);
console.log("width"+width);
});