HTML Window length প্রপার্টি বর্তমান HTML ডকুমেন্টে <iframe> এলিমেন্টের সংখ্যা রিটার্ন করে।
সিনট্যাক্স
নিচে সিনট্যাক্স দেওয়া হলো:
window.length
HTML Window length প্রপার্টির একটি উদাহরণ দেখা যাক:
উদাহরণ
<!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; } </style> <body> <h1>HTML Window length প্রপার্টি</h1> <iframe src="https://tutorialspoint.com/"></iframe> <button onclick="display()" class="btn">iframe সংখ্যা দেখান</button> <div class="show"></div> <script> function display() { document.querySelector('.show').innerHTML = 'iframe সংখ্যা: ' + window.length; } </script> </body> </html>আউটপুট

HTML ডকুমেন্টে iframe সংখ্যা দেখতে iframe সংখ্যা দেখান বাটনে ক্লিক করুন:
