Document.close()‎

من موسوعة حسوب
اذهب إلى التنقل اذهب إلى البحث
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

يُنهِي التّابع Document.close()‎ الكتابة إلى مستندٍ فُتح بالتّابع Document.open()‎.

البنية العامة

document.close();

مثال

// فتح مستند للكتابة
// ثمّ كتابة محتوى على المستند
// ثمّ إغلاقه
document.open();
document.write("<p>هنا محتوى</p>");
document.close();

مصادر ومواصفات