কম্পিউটার টিউটোরিয়াল

HTML Window outerWidth প্রপার্টি


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>

আউটপুট

HTML Window outerWidth প্রপার্টি

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

HTML Window outerWidth প্রপার্টি


  1. HTML DOM Window opener প্রোপার্টি

  2. HTML DOM Window frames প্রোপার্টি

  3. HTML DOM Window frameElement প্রোপার্টি

  4. HTML DOM Window closed প্রোপার্টি