Document.designMode
نبذه مختصره
document.designMode
يتحكم بطبيعة عرض كامل المحتوى كـ قابل للتعديل. القيم التي يقبلها هي "off"
معطل
و "on" مشغل
.بحسب تخصيصه. القيمة الافتراضية لهذه الخاصية معطله "off"
. فايرفوكس يتبع هذا النمط. الاصدارات الحديثة من كروم و إنترنت اكسبلورر القيمة الافتراضية فيها "inherit"
. بدأً من الاصدار 43 لمتصفح كروم، القيمة الافتراضية هي "off
" و "inherit"
لم تعد مدعومه اكثر. في إنترنت اكسبلورر 6 حتى 10، القيمة هي مستثمرة
الصيغة
var mode = document.designMode;
document.designMode = "on";
document.designMode = "off";
مثال
جعل عنصر/عناصر ifram
قابله للتعديل:
iframeNode.contentDocument.designMode = "on";
التخصيص
الخاصية | الحالة | تعليق |
---|---|---|
HTML Living Standard The definition of 'designMode' in that specification. |
Living Standard | Initial definition. |
دعم المتصفحات
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
الدعم | كروم | ايدج | فايرفوكس | إنترنت اكسبلورر | اوبرا | سفاري |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | No support | (Yes) | ? | ? | ? | ? | ? | (Yes) |