Window closed property

Definition and usage

If the window is closed then closed Properties return true.

closed Properties are read-only.

আরও দেখুন:

open() method

close() method

উদাহরণ

Check if the window is closed function:

function checkWin() {
  if (!myWindow) {
    text = "It has never been opened!";
  } else {
    if (myWindow.closed) {
      text = "It is closed.";
    } else {
      text = "It is open.";
    }
  }
}

আপনার নিজেই প্রয়োগ করুন

বিন্যাস

window.closed

ফলাফল

ধরন বর্ণনা
বুল মান যদি উইন্ডো বন্ধ হয়েছে, তবে true, না তবে false

ব্রাউজার সমর্থন

সমস্ত ব্রাউজারগুলি সমর্থন করে window.closed

চ্রোম আইই এজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম আইই এজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন