English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
defaultViewRead-only property returns the one associated with the documentWindow (window)Object, if there is no available window object, it will return asnull.
document.defaultView
var win = document.defaultView;Test and see‹/›
The numbers in the table specify the first browser version that fully supports the defaultView property:
Property | |||||
defaultView | Is | Is | Is | Is | 9 |
Return Value: | Associated with the documentWindowObject |
---|---|
DOM Version: | DOM Level1 |
Get all properties and methods of the window object:
var win = document.defaultView; for (let x in winObj) { items += x; }Test and see‹/›