জাভাস্ক্রিপ্টে ব্রাউজার রিসাইজ হলে উইন্ডোর সাইজ জানতে window.outerWidth এবং window.outerHeight ব্যবহার করা হয়।
উদাহরণ
<!DOCTYPE html> <html> <head> <script> function resizeFunction() { var val = "Window Width=" + window.outerWidth + ", Window Height=" + window.outerHeight; document.getElementById("test").innerHTML = val; } </script> </head> <body onresize = "resizeFunction()"> <p>Resize browser window and check the window (browser window) height and width again.</p> <p id = "test"> </p> </body> </html>