HTML Window outerWidth প্রপার্টি ব্রাউজার উইন্ডোর প্রস্থ রিটার্ন করে যার মধ্যে সব ইন্টারফেস এলিমেন্ট অন্তর্ভুক্ত।
সিনট্যাক্স
নিচে সিনট্যাক্স দেওয়া হলো:
window.outerWidth
HTML Window outerWidth প্রপার্টির একটি উদাহরণ দেখা যাক:
উদাহরণ
<!DOCTYPE html> <html> <style> body { color: #000; height: 100vh; background-color: #8BC6EC; background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%); text-align: center; } .btn { background: #db133a; border: none; height: 2rem; border-radius: 2px; width: 40%; display: block; color: #fff; outline: none; cursor: pointer; margin: 1rem auto; } .show { font-size: 1.2rem; } </style> <body> <h1>HTML Window outerWidth প্রপার্টি</h1> <button onclick="display()" class="btn">ব্রাউজার উইন্ডোর প্রস্থ দেখান</button> <div class="show"></div> <script> function display() { document.querySelector('.show').innerHTML = 'ব্রাউজার উইন্ডোর প্রস্থ: ' + window.outerWidth + "px"; } </script> </body> </html>আউটপুট

ব্রাউজার উইন্ডোর প্রস্থ দেখতে ব্রাউজার উইন্ডোর প্রস্থ দেখান বাটনে ক্লিক করুন:
