[Java Script] 팝업 리사이즈
팝업 사이즈에 맡게 리사이즈.
function winResize() {
var Dwidth = parseInt(document.body.scrollWidth);
var Dheight = parseInt(document.body.scrollHeight);
var divEl = document.createElement("div");
divEl.style.position = "absolute";
divEl.style.left = "0px";
divEl.style.top = "0px";
divEl.style.width = "100%";
divEl.style.height = "100%";
document.body.appendChild(divEl);
window.resizeBy(Dwidth-divEl.offsetWidth, Dheight-divEl.offsetHeight);
document.body.removeChild(divEl);
}
댓글