Window interface
نافذة تحتوي على مستند DOM؛ تشير خاصية المستند إلى مستند DOM الذي تم تحميله في تلك النافذة.
- يمتد
-
EventTarget,AnimationFrameProvider,GlobalEventHandlers,WindowEventHandlers,WindowLocalStorage,WindowOrWorkerGlobalScope,WindowSessionStorage
الخصائص
client |
|
closed | إرجاع true إذا تم إغلاق النافذة، خطأ بخلاف ذلك. |
custom |
تعريف عنصر مخصص جديد، وتعيين الاسم المحدد إلى الدالة الإنشائية المحددة كعنصر مخصص مستقل. |
device |
|
document | |
event | |
external | |
frame |
|
frames | |
history | |
inner |
|
inner |
|
length | |
location | |
locationbar | إرجاع true إذا كان شريط الموقع مرئيا؛ وإلا، يتم إرجاع false. |
menubar | إرجاع true إذا كان شريط القوائم مرئيا؛ وإلا، يتم إرجاع false. |
ms |
|
name | |
navigator | |
ondevicemotion | متوفر فقط في سياقات آمنة. |
ondeviceorientation | متوفر فقط في سياقات آمنة. |
onorientationchange | |
opener | |
orientation | |
outer |
|
outer |
|
page |
|
page |
|
parent | يشير إما إلى WindowProxy الأصل، أو إلى نفسه. نادرا ما يكون خاليا على سبيل المثال ل contentWindow من iframe الذي تمت إزالته بالفعل من الأصل. |
personalbar | إرجاع true إذا كان الشريط الشخصي مرئيا؛ وإلا، يتم إرجاع false. |
powerbi | |
power |
|
screen | |
screen |
|
screen |
|
screenX | |
screenY | |
scrollbars | إرجاع true إذا كانت أشرطة التمرير مرئية؛ وإلا، يتم إرجاع false. |
scrollX | |
scrollY | |
self | |
speech |
|
status | |
statusbar | إرجاع true إذا كان شريط المعلومات مرئيا؛ وإلا، يتم إرجاع false. |
toolbar | إرجاع true إذا كان شريط الأدوات مرئيا؛ وإلا، يتم إرجاع false. |
top | |
visual |
|
window |
الخصائص الموروثة
caches | متوفر فقط في سياقات آمنة. |
cross |
|
crypto | |
indexedDB | |
is |
|
local |
|
onabort | يتم إطلاقه عندما يقوم المستخدم باجهاض التنزيل. |
onafterprint | |
onanimationcancel | |
onanimationend | |
onanimationiteration | |
onanimationstart | |
onauxclick | |
onbeforeinput | |
onbeforeprint | |
onbeforeunload | |
onblur | يتم إطلاقه عندما يفقد الكائن تركيز الإدخال. |
oncancel | |
oncanplay | يحدث عندما يكون التشغيل ممكنا، ولكنه يتطلب المزيد من التخزين المؤقت. |
oncanplaythrough | |
onchange | يتم إطلاقه عند تغيير محتويات العنصر أو التحديد. |
onclick | يتم تشغيله عندما ينقر المستخدم فوق زر الماوس الأيسر على العنصر |
onclose | |
oncontextmenu | يتم تشغيله عندما ينقر المستخدم فوق زر الماوس الأيمن في منطقة العميل، مع فتح قائمة السياق. |
oncuechange | |
ondblclick | يتم إطلاقه عندما ينقر المستخدم نقرا مزدوجا فوق الكائن. |
ondrag | يتم تشغيل الكائن المصدر بشكل مستمر أثناء عملية السحب. |
ondragend | يتم تشغيل الكائن المصدر عندما يقوم المستخدم بتحرير الماوس عند إغلاق عملية السحب. |
ondragenter | تشغيل العنصر الهدف عندما يقوم المستخدم بسحب الكائن إلى هدف إسقاط صالح. |
ondragleave | يطلق النار على الكائن الهدف عندما يقوم المستخدم بنقل الماوس خارج هدف إسقاط صالح أثناء عملية السحب. |
ondragover | يتم تشغيل العنصر الهدف بشكل مستمر بينما يقوم المستخدم بسحب الكائن عبر هدف إسقاط صالح. |
ondragstart | يتم تشغيل الكائن المصدر عندما يبدأ المستخدم في سحب تحديد نص أو كائن محدد. |
ondrop | |
ondurationchange | يحدث عند تحديث سمة المدة. |
onemptied | يحدث عند إعادة تعيين عنصر الوسائط إلى حالته الأولية. |
onended | يحدث عند الوصول إلى نهاية التشغيل. |
onerror | يتم تشغيل عند حدوث خطأ أثناء تحميل الكائن. |
onfocus | يتم إطلاقه عندما يتلقى الكائن التركيز. |
onformdata | |
ongamepadconnected | |
ongamepaddisconnected | |
ongotpointercapture | |
onhashchange | |
oninput | |
oninvalid | |
onkeydown | يتم إطلاقه عندما يضغط المستخدم على مفتاح. |
onkeypress | يتم إطلاقه عندما يضغط المستخدم على مفتاح أبجدي رقمي. |
onkeyup | يتم إطلاقه عندما يقوم المستخدم بتحرير مفتاح. |
onlanguagechange | |
onload | يتم إطلاقه مباشرة بعد تحميل المستعرض للكائن. |
onloadeddata | يحدث عند تحميل بيانات الوسائط في موضع التشغيل الحالي. |
onloadedmetadata | يحدث عندما يتم تحديد مدة الوسائط وأبعادها. |
onloadstart | يحدث عندما يبدأ Internet Explorer في البحث عن بيانات الوسائط. |
onlostpointercapture | |
onmessage | |
onmessageerror | |
onmousedown | يتم إطلاقه عندما ينقر المستخدم فوق الكائن باستخدام زر الماوس. |
onmouseenter | |
onmouseleave | |
onmousemove | يتم إطلاقه عندما يقوم المستخدم بتحريك الماوس فوق الكائن. |
onmouseout | يتم إطلاقه عندما يقوم المستخدم بتحريك مؤشر الماوس خارج حدود العنصر. |
onmouseover | يتم إطلاقه عندما يقوم المستخدم بتحريك مؤشر الماوس إلى الكائن. |
onmouseup | يتم إطلاقه عندما يقوم المستخدم بتحرير زر ماوس أثناء تمرير الماوس فوق الكائن. |
onoffline | |
ononline | |
onpagehide | |
onpageshow | |
onpause | يحدث عند إيقاف التشغيل مؤقتا. |
onplay | يحدث عند طلب أسلوب التشغيل. |
onplaying | يحدث عند بدء تشغيل الصوت أو الفيديو. |
onpointercancel | |
onpointerdown | |
onpointerenter | |
onpointerleave | |
onpointermove | |
onpointerout | |
onpointerover | |
onpointerup | |
onpopstate | |
onprogress | يحدث للإشارة إلى التقدم أثناء تنزيل بيانات الوسائط. |
onratechange | يحدث عند زيادة معدل التشغيل أو انخفاضه. |
onrejectionhandled | |
onreset | يتم إطلاقه عندما يعيد المستخدم تعيين نموذج. |
onresize | |
onscroll | يتم تشغيله عندما يقوم المستخدم بتغيير موضع مربع التمرير في شريط التمرير على العنصر. |
onsecuritypolicyviolation | |
onseeked | يحدث عند انتهاء عملية البحث. |
onseeking | يحدث عند نقل موضع التشغيل الحالي. |
onselect | يتم إطلاقه عند تغيير التحديد الحالي. |
onselectionchange | |
onselectstart | |
onslotchange | |
onstalled | يحدث عند توقف التنزيل. |
onstorage | |
onsubmit | |
onsuspend | يحدث إذا تم إيقاف عملية التحميل عن قصد. |
ontimeupdate | يحدث للإشارة إلى موضع التشغيل الحالي. |
ontoggle | |
ontouchcancel | |
ontouchend | |
ontouchmove | |
ontouchstart | |
ontransitioncancel | |
ontransitionend | |
ontransitionrun | |
ontransitionstart | |
onunhandledrejection | |
onunload | |
onvolumechange | يحدث عند تغيير مستوى الصوت، أو يتم كتم الصوت أو إلغاء كتم الصوت. |
onwaiting | يحدث عند توقف التشغيل لأن الإطار التالي لمورد فيديو غير متوفر. |
onwebkitanimationend | |
onwebkitanimationiteration | |
onwebkitanimationstart | |
onwebkittransitionend | |
onwheel | |
origin | |
performance | |
session |
الأساليب
الأساليب المتوارثة
atob(string) | |
btoa(string) | |
cancel |
|
clear |
|
clear |
|
create |
|
create |
|
dispatch |
إرسال حدث حدث اصطناعي لاستهداف وإرجاع true إذا كانت قيمة سمة الحدث القابلة للإلغاء خاطئة أو لم يتم استدعاء أسلوب preventDefault() الخاص به، وخطأ بخلاف ذلك. |
fetch(URL | Request |
|
queue |
|
report |
|
request |
|
set |
|
set |
|
structured |
تفاصيل الخاصية
clientInformation
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of navigator
.
clientInformation: Navigator
قيمة الخاصية
Navigator
closed
إرجاع true إذا تم إغلاق النافذة، خطأ بخلاف ذلك.
closed: boolean
قيمة الخاصية
boolean
customElements
تعريف عنصر مخصص جديد، وتعيين الاسم المحدد إلى الدالة الإنشائية المحددة كعنصر مخصص مستقل.
customElements: CustomElementRegistry
قيمة الخاصية
CustomElementRegistry
devicePixelRatio
devicePixelRatio: number
قيمة الخاصية
number
document
document: Document
قيمة الخاصية
Document
event
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
event: undefined | Event
قيمة الخاصية
undefined | Event
external
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
external: External
قيمة الخاصية
External
frameElement
frameElement: null | Element
قيمة الخاصية
null | Element
frames
frames: Window
قيمة الخاصية
Window
history
history: History
قيمة الخاصية
History
innerHeight
innerHeight: number
قيمة الخاصية
number
innerWidth
innerWidth: number
قيمة الخاصية
number
length
length: number
قيمة الخاصية
number
location
Location location
قيمة الخاصية
Location
locationbar
إرجاع true إذا كان شريط الموقع مرئيا؛ وإلا، يتم إرجاع false.
locationbar: BarProp
قيمة الخاصية
BarProp
menubar
إرجاع true إذا كان شريط القوائم مرئيا؛ وإلا، يتم إرجاع false.
menubar: BarProp
قيمة الخاصية
BarProp
msCrypto
msCrypto: Crypto
قيمة الخاصية
Crypto
name
name: string
قيمة الخاصية
string
navigator
navigator: Navigator
قيمة الخاصية
Navigator
ondevicemotion
متوفر فقط في سياقات آمنة.
ondevicemotion: null | (this: Window, ev: DeviceMotionEvent) => any
قيمة الخاصية
null | (this: Window, ev: DeviceMotionEvent) => any
ondeviceorientation
متوفر فقط في سياقات آمنة.
ondeviceorientation: null | (this: Window, ev: DeviceOrientationEvent) => any
قيمة الخاصية
null | (this: Window, ev: DeviceOrientationEvent) => any
onorientationchange
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
onorientationchange: null | (this: Window, ev: Event) => any
قيمة الخاصية
null | (this: Window, ev: Event) => any
opener
opener: any
قيمة الخاصية
any
orientation
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
orientation: number
قيمة الخاصية
number
outerHeight
outerHeight: number
قيمة الخاصية
number
outerWidth
outerWidth: number
قيمة الخاصية
number
pageXOffset
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of scrollX
.
pageXOffset: number
قيمة الخاصية
number
pageYOffset
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of scrollY
.
pageYOffset: number
قيمة الخاصية
number
parent
يشير إما إلى WindowProxy الأصل، أو إلى نفسه.
نادرا ما يكون خاليا على سبيل المثال ل contentWindow من iframe الذي تمت إزالته بالفعل من الأصل.
parent: Window
قيمة الخاصية
Window
personalbar
إرجاع true إذا كان الشريط الشخصي مرئيا؛ وإلا، يتم إرجاع false.
personalbar: BarProp
قيمة الخاصية
BarProp
powerbi
powerBISDKGlobalServiceInstanceName
powerBISDKGlobalServiceInstanceName?: string
قيمة الخاصية
string
screen
screen: Screen
قيمة الخاصية
Screen
screenLeft
screenLeft: number
قيمة الخاصية
number
screenTop
screenTop: number
قيمة الخاصية
number
screenX
screenX: number
قيمة الخاصية
number
screenY
screenY: number
قيمة الخاصية
number
scrollbars
إرجاع true إذا كانت أشرطة التمرير مرئية؛ وإلا، يتم إرجاع false.
scrollbars: BarProp
قيمة الخاصية
BarProp
scrollX
scrollX: number
قيمة الخاصية
number
scrollY
scrollY: number
قيمة الخاصية
number
self
self: Window & typeof globalThis
قيمة الخاصية
Window & typeof globalThis
speechSynthesis
speechSynthesis: SpeechSynthesis
قيمة الخاصية
SpeechSynthesis
status
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
status: string
قيمة الخاصية
string
statusbar
إرجاع true إذا كان شريط المعلومات مرئيا؛ وإلا، يتم إرجاع false.
statusbar: BarProp
قيمة الخاصية
BarProp
toolbar
إرجاع true إذا كان شريط الأدوات مرئيا؛ وإلا، يتم إرجاع false.
toolbar: BarProp
قيمة الخاصية
BarProp
top
top: null | Window
قيمة الخاصية
null | Window
visualViewport
visualViewport: null | VisualViewport
قيمة الخاصية
null | VisualViewport
window
window: Window & typeof globalThis
قيمة الخاصية
Window & typeof globalThis
تفاصيل الخاصية الموروثة
caches
متوفر فقط في سياقات آمنة.
caches: CacheStorage
قيمة الخاصية
CacheStorage
موروثة من WindowOrWorkerGlobalScope.caches
crossOriginIsolated
crossOriginIsolated: boolean
قيمة الخاصية
boolean
موروث من WindowOrWorkerGlobalScope.crossOriginIsolated
crypto
crypto: Crypto
قيمة الخاصية
Crypto
موروث من WindowOrWorkerGlobalScope.crypto
indexedDB
indexedDB: IDBFactory
قيمة الخاصية
IDBFactory
موروث من WindowOrWorkerGlobalScope.indexedDB
isSecureContext
isSecureContext: boolean
قيمة الخاصية
boolean
موروث من WindowOrWorkerGlobalScope.isSecureContext
localStorage
localStorage: Storage
قيمة الخاصية
Storage
موروث من WindowLocalStorage.localStorage
onabort
يتم إطلاقه عندما يقوم المستخدم باجهاض التنزيل.
onabort: null | (this: GlobalEventHandlers, ev: UIEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: UIEvent) => any
موروث من GlobalEventHandlers.onabort
onafterprint
onafterprint: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.onafterprint
onanimationcancel
onanimationcancel: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
الموروثة من GlobalEventHandlers.onanimationcancel
onanimationend
onanimationend: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
موروثة من GlobalEventHandlers.onanimationend
onanimationiteration
onanimationiteration: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
موروث من GlobalEventHandlers.onanimationiteration
onanimationstart
onanimationstart: null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: AnimationEvent) => any
الموروثة من GlobalEventHandlers.onanimationstart
onauxclick
onauxclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروثة من GlobalEventHandlers.onauxclick
onbeforeinput
onbeforeinput: null | (this: GlobalEventHandlers, ev: InputEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: InputEvent) => any
موروث من GlobalEventHandlers.onbeforeinput
onbeforeprint
onbeforeprint: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.onbeforeprint
onbeforeunload
onbeforeunload: null | (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: BeforeUnloadEvent) => any
موروث من WindowEventHandlers.onbeforeunload
onblur
يتم إطلاقه عندما يفقد الكائن تركيز الإدخال.
onblur: null | (this: GlobalEventHandlers, ev: FocusEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: FocusEvent) => any
موروث من GlobalEventHandlers.onblur
oncancel
oncancel: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.oncancel
oncanplay
يحدث عندما يكون التشغيل ممكنا، ولكنه يتطلب المزيد من التخزين المؤقت.
oncanplay: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.oncanplay
oncanplaythrough
oncanplaythrough: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.oncanplaythrough
onchange
يتم إطلاقه عند تغيير محتويات العنصر أو التحديد.
onchange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onchange
onclick
يتم تشغيله عندما ينقر المستخدم فوق زر الماوس الأيسر على العنصر
onclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
الموروثة من GlobalEventHandlers.onclick
onclose
onclose: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onclose
oncontextmenu
يتم تشغيله عندما ينقر المستخدم فوق زر الماوس الأيمن في منطقة العميل، مع فتح قائمة السياق.
oncontextmenu: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروث من GlobalEventHandlers.oncontextmenu
oncuechange
oncuechange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.oncuechange
ondblclick
يتم إطلاقه عندما ينقر المستخدم نقرا مزدوجا فوق الكائن.
ondblclick: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروث من GlobalEventHandlers.ondblclick
ondrag
يتم تشغيل الكائن المصدر بشكل مستمر أثناء عملية السحب.
ondrag: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروثة من GlobalEventHandlers.ondrag
ondragend
يتم تشغيل الكائن المصدر عندما يقوم المستخدم بتحرير الماوس عند إغلاق عملية السحب.
ondragend: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروثة من GlobalEventHandlers.ondragend
ondragenter
تشغيل العنصر الهدف عندما يقوم المستخدم بسحب الكائن إلى هدف إسقاط صالح.
ondragenter: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروث من GlobalEventHandlers.ondragenter
ondragleave
يطلق النار على الكائن الهدف عندما يقوم المستخدم بنقل الماوس خارج هدف إسقاط صالح أثناء عملية السحب.
ondragleave: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروثة من GlobalEventHandlers.ondragleave
ondragover
يتم تشغيل العنصر الهدف بشكل مستمر بينما يقوم المستخدم بسحب الكائن عبر هدف إسقاط صالح.
ondragover: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروث من GlobalEventHandlers.ondragover
ondragstart
يتم تشغيل الكائن المصدر عندما يبدأ المستخدم في سحب تحديد نص أو كائن محدد.
ondragstart: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
الموروثة من GlobalEventHandlers.ondragstart
ondrop
ondrop: null | (this: GlobalEventHandlers, ev: DragEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: DragEvent) => any
موروثة من GlobalEventHandlers.ondrop
ondurationchange
يحدث عند تحديث سمة المدة.
ondurationchange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.ondurationchange
onemptied
يحدث عند إعادة تعيين عنصر الوسائط إلى حالته الأولية.
onemptied: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onemptied
onended
يحدث عند الوصول إلى نهاية التشغيل.
onended: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onended
onerror
يتم تشغيل عند حدوث خطأ أثناء تحميل الكائن.
onerror: OnErrorEventHandler
قيمة الخاصية
OnErrorEventHandler
موروث من GlobalEventHandlers.onerror
onfocus
يتم إطلاقه عندما يتلقى الكائن التركيز.
onfocus: null | (this: GlobalEventHandlers, ev: FocusEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: FocusEvent) => any
موروث من GlobalEventHandlers.onfocus
onformdata
onformdata: null | (this: GlobalEventHandlers, ev: FormDataEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: FormDataEvent) => any
موروثة من GlobalEventHandlers.onformdata
ongamepadconnected
ongamepadconnected: null | (this: WindowEventHandlers, ev: GamepadEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: GamepadEvent) => any
موروث من WindowEventHandlers.ongamepadconnected
ongamepaddisconnected
ongamepaddisconnected: null | (this: WindowEventHandlers, ev: GamepadEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: GamepadEvent) => any
موروث من WindowEventHandlers.ongamepaddisconnected
ongotpointercapture
ongotpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.ongotpointercapture
onhashchange
onhashchange: null | (this: WindowEventHandlers, ev: HashChangeEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: HashChangeEvent) => any
موروث من WindowEventHandlers.onhashchange
oninput
oninput: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.oninput
oninvalid
oninvalid: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.oninvalid
onkeydown
يتم إطلاقه عندما يضغط المستخدم على مفتاح.
onkeydown: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
موروث من GlobalEventHandlers.onkeydown
onkeypress
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
يتم إطلاقه عندما يضغط المستخدم على مفتاح أبجدي رقمي.
onkeypress: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
موروث من GlobalEventHandlers.onkeypress
onkeyup
يتم إطلاقه عندما يقوم المستخدم بتحرير مفتاح.
onkeyup: null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: KeyboardEvent) => any
موروث من GlobalEventHandlers.onkeyup
onlanguagechange
onlanguagechange: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.onlanguagechange
onload
يتم إطلاقه مباشرة بعد تحميل المستعرض للكائن.
onload: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onload
onloadeddata
يحدث عند تحميل بيانات الوسائط في موضع التشغيل الحالي.
onloadeddata: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onloadeddata
onloadedmetadata
يحدث عندما يتم تحديد مدة الوسائط وأبعادها.
onloadedmetadata: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onloadedmetadata
onloadstart
يحدث عندما يبدأ Internet Explorer في البحث عن بيانات الوسائط.
onloadstart: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onloadstart
onlostpointercapture
onlostpointercapture: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onlostpointercapture
onmessage
onmessage: null | (this: WindowEventHandlers, ev: MessageEvent<any>) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: MessageEvent<any>) => any
موروث من WindowEventHandlers.onmessage
onmessageerror
onmessageerror: null | (this: WindowEventHandlers, ev: MessageEvent<any>) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: MessageEvent<any>) => any
موروث من WindowEventHandlers.onmessageerror
onmousedown
يتم إطلاقه عندما ينقر المستخدم فوق الكائن باستخدام زر الماوس.
onmousedown: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروثة من GlobalEventHandlers.onmousedown
onmouseenter
onmouseenter: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروث من GlobalEventHandlers.onmouseenter
onmouseleave
onmouseleave: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروث من GlobalEventHandlers.onmouseleave
onmousemove
يتم إطلاقه عندما يقوم المستخدم بتحريك الماوس فوق الكائن.
onmousemove: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروثة من GlobalEventHandlers.onmousemove
onmouseout
يتم إطلاقه عندما يقوم المستخدم بتحريك مؤشر الماوس خارج حدود العنصر.
onmouseout: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروثة من GlobalEventHandlers.onmouseout
onmouseover
يتم إطلاقه عندما يقوم المستخدم بتحريك مؤشر الماوس إلى الكائن.
onmouseover: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروثة من GlobalEventHandlers.onmouseover
onmouseup
يتم إطلاقه عندما يقوم المستخدم بتحرير زر ماوس أثناء تمرير الماوس فوق الكائن.
onmouseup: null | (this: GlobalEventHandlers, ev: MouseEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: MouseEvent) => any
موروث من GlobalEventHandlers.onmouseup
onoffline
onoffline: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.onoffline
ononline
ononline: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.ononline
onpagehide
onpagehide: null | (this: WindowEventHandlers, ev: PageTransitionEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: PageTransitionEvent) => any
موروث من WindowEventHandlers.onpagehide
onpageshow
onpageshow: null | (this: WindowEventHandlers, ev: PageTransitionEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: PageTransitionEvent) => any
موروث من WindowEventHandlers.onpageshow
onpause
يحدث عند إيقاف التشغيل مؤقتا.
onpause: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onpause
onplay
يحدث عند طلب أسلوب التشغيل.
onplay: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onplay
onplaying
يحدث عند بدء تشغيل الصوت أو الفيديو.
onplaying: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onplaying
onpointercancel
onpointercancel: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروثة من GlobalEventHandlers.onpointercancel
onpointerdown
onpointerdown: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerdown
onpointerenter
onpointerenter: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerenter
onpointerleave
onpointerleave: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerleave
onpointermove
onpointermove: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointermove
onpointerout
onpointerout: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerout
onpointerover
onpointerover: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerover
onpointerup
onpointerup: null | (this: GlobalEventHandlers, ev: PointerEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: PointerEvent) => any
موروث من GlobalEventHandlers.onpointerup
onpopstate
onpopstate: null | (this: WindowEventHandlers, ev: PopStateEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: PopStateEvent) => any
موروث من WindowEventHandlers.onpopstate
onprogress
يحدث للإشارة إلى التقدم أثناء تنزيل بيانات الوسائط.
onprogress: null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any
موروث من GlobalEventHandlers.onprogress
onratechange
يحدث عند زيادة معدل التشغيل أو انخفاضه.
onratechange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onratechange
onrejectionhandled
onrejectionhandled: null | (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any
موروث من WindowEventHandlers.onrejectionhandled
onreset
يتم إطلاقه عندما يعيد المستخدم تعيين نموذج.
onreset: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onreset
onresize
onresize: null | (this: GlobalEventHandlers, ev: UIEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: UIEvent) => any
موروثة من GlobalEventHandlers.onresize
onscroll
يتم تشغيله عندما يقوم المستخدم بتغيير موضع مربع التمرير في شريط التمرير على العنصر.
onscroll: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onscroll
onsecuritypolicyviolation
onsecuritypolicyviolation: null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any
موروثة من GlobalEventHandlers.onsecuritypolicyviolation
onseeked
يحدث عند انتهاء عملية البحث.
onseeked: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onseeked
onseeking
يحدث عند نقل موضع التشغيل الحالي.
onseeking: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onseeking
onselect
يتم إطلاقه عند تغيير التحديد الحالي.
onselect: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onselect
onselectionchange
onselectionchange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onselectionchange
onselectstart
onselectstart: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onselectstart
onslotchange
onslotchange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onslotchange
onstalled
يحدث عند توقف التنزيل.
onstalled: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onstalled
onstorage
onstorage: null | (this: WindowEventHandlers, ev: StorageEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: StorageEvent) => any
موروث من WindowEventHandlers.onstorage
onsubmit
onsubmit: null | (this: GlobalEventHandlers, ev: SubmitEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: SubmitEvent) => any
موروث من GlobalEventHandlers.onsubmit
onsuspend
يحدث إذا تم إيقاف عملية التحميل عن قصد.
onsuspend: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onsuspend
ontimeupdate
يحدث للإشارة إلى موضع التشغيل الحالي.
ontimeupdate: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.ontimeupdate
ontoggle
ontoggle: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
الموروثة من GlobalEventHandlers.ontoggle
ontouchcancel
ontouchcancel?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
الموروثة من GlobalEventHandlers.ontouchcancel
ontouchend
ontouchend?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
موروثة من GlobalEventHandlers.ontouchend
ontouchmove
ontouchmove?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
موروثة من GlobalEventHandlers.touchmove
ontouchstart
ontouchstart?: null | (this: GlobalEventHandlers, ev: TouchEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TouchEvent) => any
موروثة من GlobalEventHandlers.ontouchstart
ontransitioncancel
ontransitioncancel: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
موروث من GlobalEventHandlers.ontransitioncancel
ontransitionend
ontransitionend: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
موروث من GlobalEventHandlers.ontransitionend
ontransitionrun
ontransitionrun: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
الموروثة من GlobalEventHandlers.ontransitionrun
ontransitionstart
ontransitionstart: null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: TransitionEvent) => any
الموروثة من GlobalEventHandlers.ontransitionstart
onunhandledrejection
onunhandledrejection: null | (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: PromiseRejectionEvent) => any
موروث من WindowEventHandlers.onunhandledrejection
onunload
onunload: null | (this: WindowEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: WindowEventHandlers, ev: Event) => any
موروث من WindowEventHandlers.onunload
onvolumechange
يحدث عند تغيير مستوى الصوت، أو يتم كتم الصوت أو إلغاء كتم الصوت.
onvolumechange: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onvolumechange
onwaiting
يحدث عند توقف التشغيل لأن الإطار التالي لمورد فيديو غير متوفر.
onwaiting: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onwaiting
onwebkitanimationend
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of onanimationend
.
onwebkitanimationend: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروثة من GlobalEventHandlers.onwebkitanimationend
onwebkitanimationiteration
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of onanimationiteration
.
onwebkitanimationiteration: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
الموروثة من GlobalEventHandlers.onwebkitanimationiteration
onwebkitanimationstart
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of onanimationstart
.
onwebkitanimationstart: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
الموروثة من GlobalEventHandlers.onwebkitanimationstart
onwebkittransitionend
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
This is a legacy alias of ontransitionend
.
onwebkittransitionend: null | (this: GlobalEventHandlers, ev: Event) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: Event) => any
موروث من GlobalEventHandlers.onwebkittransitionend
onwheel
onwheel: null | (this: GlobalEventHandlers, ev: WheelEvent) => any
قيمة الخاصية
null | (this: GlobalEventHandlers, ev: WheelEvent) => any
موروث من GlobalEventHandlers.onwheel
origin
origin: string
قيمة الخاصية
string
موروث من WindowOrWorkerGlobalScope.origin
performance
performance: Performance
قيمة الخاصية
Performance
موروث من WindowOrWorkerGlobalScope.performance
sessionStorage
sessionStorage: Storage
قيمة الخاصية
Storage
موروث من WindowSessionStorage.sessionStorage
تفاصيل الأسلوب
addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)
function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)
المعلمات
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | AddEventListenerOptions
addEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | AddEventListenerOptions)
function addEventListener<K>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions)
المعلمات
- type
-
K
- listener
-
(this: Window, ev: WindowEventMap[K]) => any
- options
-
boolean | AddEventListenerOptions
alert(any)
function alert(message?: any)
المعلمات
- message
-
any
blur()
function blur()
cancelIdleCallback(number)
function cancelIdleCallback(handle: number)
المعلمات
- handle
-
number
captureEvents()
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
function captureEvents()
close()
إغلاق النافذة.
function close()
confirm(string)
function confirm(message?: string): boolean
المعلمات
- message
-
string
المرتجعات
boolean
focus()
نقل التركيز إلى سياق استعراض النافذة، إن وجد.
function focus()
getComputedStyle(Element, null | string)
function getComputedStyle(elt: Element, pseudoElt?: null | string): CSSStyleDeclaration
المعلمات
- elt
-
Element
- pseudoElt
-
null | string
المرتجعات
CSSStyleDeclaration
getSelection()
function getSelection(): null | Selection
المرتجعات
null | Selection
matchMedia(string)
function matchMedia(query: string): MediaQueryList
المعلمات
- query
-
string
المرتجعات
MediaQueryList
moveBy(number, number)
function moveBy(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
moveTo(number, number)
function moveTo(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
open(string | URL, string, string)
function open(url?: string | URL, target?: string, features?: string): null | Window
المعلمات
- url
-
string | URL
- target
-
string
- features
-
string
المرتجعات
null | Window
postMessage(any, string, Transferable[])
نشر رسالة إلى النافذة المحددة. يمكن أن تكون الرسائل كائنات منظمة، على سبيل المثال، الكائنات المتداخلة والصفائف، ويمكن أن تحتوي على قيم JavaScript (سلاسل وأرقام وكائنات التاريخ وما إلى ذلك)، ويمكن أن تحتوي على كائنات بيانات معينة مثل كائنات File Blob وFileList و ArrayBuffer.
يتم نقل الكائنات المدرجة في عضو النقل من الخيارات، وليس فقط نسخها، ما يعني أنها لم تعد قابلة للاستخدام على جانب الإرسال.
يمكن تحديد أصل الهدف باستخدام عضو targetOrigin من الخيارات. إذا لم يتم توفيره، تعيينه افتراضيا إلى "/". يقيد هذا الافتراضي الرسالة إلى نفس أهداف الأصل فقط.
إذا لم يتطابق أصل النافذة الهدف مع الأصل الهدف المحدد، يتم تجاهل الرسالة، لتجنب تسرب المعلومات. لإرسال الرسالة إلى الهدف بغض النظر عن الأصل، قم بتعيين الأصل الهدف إلى "*".
طرح "DataCloneError" DOMException إذا كان صفيف النقل يحتوي على كائنات مكررة أو إذا تعذر استنساخ الرسالة.
function postMessage(message: any, targetOrigin: string, transfer?: Transferable[])
المعلمات
- message
-
any
- targetOrigin
-
string
- transfer
-
Transferable[]
postMessage(any, WindowPostMessageOptions)
function postMessage(message: any, options?: WindowPostMessageOptions)
المعلمات
- message
-
any
- options
-
WindowPostMessageOptions
print()
function print()
prompt(string, string)
function prompt(message?: string, _default?: string): null | string
المعلمات
- message
-
string
- _default
-
string
المرتجعات
null | string
releaseEvents()
تحذير
واجهة برمجة التطبيقات هذه مهملة الآن.
function releaseEvents()
removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)
function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)
المعلمات
- type
-
string
- listener
-
EventListenerOrEventListenerObject
- options
-
boolean | EventListenerOptions
removeEventListener<K>(K, (this: Window, ev: WindowEventMap[K]) => any, boolean | EventListenerOptions)
function removeEventListener<K>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions)
المعلمات
- type
-
K
- listener
-
(this: Window, ev: WindowEventMap[K]) => any
- options
-
boolean | EventListenerOptions
requestIdleCallback(IdleRequestCallback, IdleRequestOptions)
function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number
المعلمات
- callback
-
IdleRequestCallback
- options
-
IdleRequestOptions
المرتجعات
number
resizeBy(number, number)
function resizeBy(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
resizeTo(number, number)
function resizeTo(width: number, height: number)
المعلمات
- width
-
number
- height
-
number
scroll(number, number)
function scroll(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
scroll(ScrollToOptions)
function scroll(options?: ScrollToOptions)
المعلمات
- options
-
ScrollToOptions
scrollBy(number, number)
function scrollBy(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
scrollBy(ScrollToOptions)
function scrollBy(options?: ScrollToOptions)
المعلمات
- options
-
ScrollToOptions
scrollTo(number, number)
function scrollTo(x: number, y: number)
المعلمات
- x
-
number
- y
-
number
scrollTo(ScrollToOptions)
function scrollTo(options?: ScrollToOptions)
المعلمات
- options
-
ScrollToOptions
stop()
إلغاء تحميل المستند.
function stop()
تفاصيل الأساليب المتوارثة
atob(string)
function atob(data: string): string
المعلمات
- data
-
string
المرتجعات
string
موروث من WindowOrWorkerGlobalScope.atob
btoa(string)
function btoa(data: string): string
المعلمات
- data
-
string
المرتجعات
string
موروث من WindowOrWorkerGlobalScope.btoa
cancelAnimationFrame(number)
function cancelAnimationFrame(handle: number)
المعلمات
- handle
-
number
موروث من AnimationFrameProvider.cancelAnimationFrame
clearInterval(undefined | number)
function clearInterval(id: undefined | number)
المعلمات
- id
-
undefined | number
الموروثة من WindowOrWorkerGlobalScope.clearInterval
clearTimeout(undefined | number)
function clearTimeout(id: undefined | number)
المعلمات
- id
-
undefined | number
موروث من WindowOrWorkerGlobalScope.clearTimeout
createImageBitmap(ImageBitmapSource, ImageBitmapOptions)
function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>
المعلمات
- image
-
ImageBitmapSource
- options
-
ImageBitmapOptions
المرتجعات
Promise<ImageBitmap>
موروث من WindowOrWorkerGlobalScope.createImageBitmap
createImageBitmap(ImageBitmapSource, number, number, number, number, ImageBitmapOptions)
function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>
المعلمات
- image
-
ImageBitmapSource
- sx
-
number
- sy
-
number
- sw
-
number
- sh
-
number
- options
-
ImageBitmapOptions
المرتجعات
Promise<ImageBitmap>
موروث من WindowOrWorkerGlobalScope.createImageBitmap
dispatchEvent(Event)
إرسال حدث حدث اصطناعي لاستهداف وإرجاع true إذا كانت قيمة سمة الحدث القابلة للإلغاء خاطئة أو لم يتم استدعاء أسلوب preventDefault() الخاص به، وخطأ بخلاف ذلك.
function dispatchEvent(event: Event): boolean
المعلمات
- event
-
Event
المرتجعات
boolean
موروث من EventTarget.dispatchEvent
fetch(URL | RequestInfo, RequestInit)
function fetch(input: URL | RequestInfo, init?: RequestInit): Promise<Response>
المعلمات
- input
-
URL | RequestInfo
- init
-
RequestInit
المرتجعات
Promise<Response>
موروث من WindowOrWorkerGlobalScope.fetch
queueMicrotask(VoidFunction)
function queueMicrotask(callback: VoidFunction)
المعلمات
- callback
-
VoidFunction
موروث من WindowOrWorkerGlobalScope.queueMicrotask
reportError(any)
function reportError(e: any)
المعلمات
- e
-
any
موروث من WindowOrWorkerGlobalScope.reportError
requestAnimationFrame(FrameRequestCallback)
function requestAnimationFrame(callback: FrameRequestCallback): number
المعلمات
- callback
-
FrameRequestCallback
المرتجعات
number
موروث من AnimationFrameProvider.requestAnimationFrame
setInterval(TimerHandler, number, any[])
function setInterval(handler: TimerHandler, timeout?: number, arguments: any[]): number
المعلمات
- handler
-
TimerHandler
- timeout
-
number
- arguments
-
any[]
المرتجعات
number
موروث من WindowOrWorkerGlobalScope.setInterval
setTimeout(TimerHandler, number, any[])
function setTimeout(handler: TimerHandler, timeout?: number, arguments: any[]): number
المعلمات
- handler
-
TimerHandler
- timeout
-
number
- arguments
-
any[]
المرتجعات
number
موروث من WindowOrWorkerGlobalScope.setTimeout
structuredClone(any, StructuredSerializeOptions)
function structuredClone(value: any, options?: StructuredSerializeOptions): any
المعلمات
- value
-
any
- options
-
StructuredSerializeOptions
المرتجعات
any
موروث من WindowOrWorkerGlobalScope.structuredClone