概述
返回当前窗口中包含的框架数量(框架包括frame
和iframe
两种元素).
语法
framesCount = window.length;
framesCount
就是该窗口中框架的数量.
示例
if (window.length) { // 该窗口包含至少一个子框架 }
规范
DOM Level 0 不属于任何标准.
返回当前窗口中包含的框架数量(框架包括frame
和iframe
两种元素).
framesCount = window.length;
framesCount
就是该窗口中框架的数量.if (window.length) { // 该窗口包含至少一个子框架 }
DOM Level 0 不属于任何标准.
Window
window.applicationCache
Window.caches
[我来译!]Window.closed
[我来译!]Window.controllers
[我来译!]Window.crypto
[我来译!]Window.defaultStatus
[我来译!]Window.devicePixelRatio
[我来译!]Window.dialogArguments
[我来译!]Window.directories
[我来译!]window.document
window.frameElement
Window.frames
[我来译!]Window.fullScreen
[我来译!]Window.history
IDBEnvironment.indexedDB
[我来译!]Window.innerHeight
Window.innerWidth
Window.length
Window.localStorage
window.location
Window.locationbar
[我来译!]Window.menubar
[我来译!]Window.messageManager
[我来译!]window.mozAnimationStartTime
Window.mozInnerScreenX
[我来译!]Window.mozInnerScreenY
[我来译!]Window.mozPaintCount
[我来译!]Window.name
window.navigator
GlobalEventHandlers.onabort
[我来译!]WindowEventHandlers.onafterprint
[我来译!]window.onbeforeunload
GlobalEventHandlers.onblur
GlobalEventHandlers.onchange
GlobalEventHandlers.onclick
[我来译!]GlobalEventHandlers.onclose
[我来译!]GlobalEventHandlers.oncontextmenu
GlobalEventHandlers.ondblclick
Window.ondevicelight
[我来译!]Window.ondevicemotion
[我来译!]Window.ondeviceorientation
[我来译!]Window.ondeviceproximity
[我来译!]Window.ondragdrop
[我来译!]GlobalEventHandlers.onerror
[我来译!]GlobalEventHandlers.onfocus
window.onhashchange
GlobalEventHandlers.oninput
GlobalEventHandlers.onkeydown
GlobalEventHandlers.onkeypress
GlobalEventHandlers.onkeyup
WindowEventHandlers.onlanguagechange
[我来译!]GlobalEventHandlers.onload
GlobalEventHandlers.onmousedown
GlobalEventHandlers.onmousemove
GlobalEventHandlers.onmouseout
GlobalEventHandlers.onmouseover
GlobalEventHandlers.onmouseup
Window.onmozbeforepaint
[我来译!]Window.onmoztimechange
[我来译!]Window.onpaint
[我来译!]window.onpopstate
GlobalEventHandlers.onreset
[我来译!]window.onresize
GlobalEventHandlers.onscroll
GlobalEventHandlers.onselect
GlobalEventHandlers.onsubmit
window.onunload
Window.onuserproximity
[我来译!]window.opener
Window.outerHeight
Window.outerWidth
window.parent
Window.performance
[我来译!]Window.personalbar
[我来译!]Window.pkcs11
[我来译!]Window.screen
Window.screenX
Window.screenY
Window.scrollbars
[我来译!]Window.scrollMaxX
[我来译!]Window.scrollMaxY
[我来译!]Window.scrollX
Window.scrollY
Window.self
Window.sessionStorage
Window.status
[我来译!]Window.statusbar
[我来译!]Window.toolbar
[我来译!]Window.top
Window.URL
[我来译!]Window.window
[我来译!]window.alert
window.atob
Window.back()
[我来译!]Window.blur()
[我来译!]window.btoa
window.cancelAnimationFrame
Window.captureEvents()
[我来译!]window.clearImmediate
WindowTimers.clearInterval()
WindowTimers.clearTimeout()
window.close
Window.confirm()
[我来译!]Window.convertPointFromNodeToPage()
[我来译!]Window.dump()
[我来译!]GlobalFetch.fetch()
[我来译!]window.find
Window.focus()
[我来译!]Window.forward()
[我来译!]Window.getAttention()
[我来译!]Window.getComputedStyle()
Window.getDefaultComputedStyle()
[我来译!]Window.getSelection
Window.home()
[我来译!]Window.importDialog()
[我来译!]Window.matchMedia()
window.minimize
Window.moveBy()
window.moveTo
window.open
window.openDialog
window.postMessage
window.print
window.prompt
window.releaseEvents
window.requestAnimationFrame
Window.resizeBy()
Window.resizeTo
Window.restore()
[我来译!]Window.routeEvent()
[我来译!]Window.scroll()
[我来译!]Window.scrollBy()
[我来译!]Window.scrollByLines()
[我来译!]window.scrollByPages
Window.scrollTo()
Window.setCursor()
[我来译!]window.setImmediate
window.setInterval
window.setTimeout
Window.showModalDialog()
Window.sizeToContent()
[我来译!]Window.stop()
[我来译!]Window.updateCommands()
[我来译!]