概述
获取/设置窗口的名称。
语法
string = window.name; window.name = string;
示例
window.name = "lab_view";
备注
窗口的名字主要用于为超链接和表单设置目标(targets)。窗口不需要有名称。
在某些框架里(如,SessionVars 和 Dojo's dojox.io.windowName),该属性也被用于作为 JSONP 的一个更安全的备选来提供跨域通信(cross-domain messaging)。
获取/设置窗口的名称。
string = window.name; window.name = string;
window.name = "lab_view";
窗口的名字主要用于为超链接和表单设置目标(targets)。窗口不需要有名称。
在某些框架里(如,SessionVars 和 Dojo's dojox.io.windowName),该属性也被用于作为 JSONP 的一个更安全的备选来提供跨域通信(cross-domain messaging)。
Window
Window.applicationCache
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
Window.onafterprint
Window.onbeforeprint
WindowEventHandlers.onbeforeunload
GlobalEventHandlers.onblur
Window.onblur
GlobalEventHandlers.onchange
Window.onchange
GlobalEventHandlers.onclick
Window.onclick
GlobalEventHandlers.onclose
GlobalEventHandlers.oncontextmenu
GlobalEventHandlers.ondblclick
Window.ondevicelight
Window.ondevicemotion
Window.ondeviceorientation
Window.ondeviceproximity
Window.ondragdrop
GlobalEventHandlers.onerror
GlobalEventHandlers.onfocus
Window.onfocus
WindowEventHandlers.onhashchange
GlobalEventHandlers.oninput
GlobalEventHandlers.onkeydown
Window.onkeydown
Window.onkeypress
GlobalEventHandlers.onkeypress
Window.onkeyup
GlobalEventHandlers.onkeyup
WindowEventHandlers.onlanguagechange
GlobalEventHandlers.onload
GlobalEventHandlers.onmousedown
Window.onmousedown
Window.onmousemove
GlobalEventHandlers.onmousemove
Window.onmouseout
GlobalEventHandlers.onmouseout
Window.onmouseover
GlobalEventHandlers.onmouseover
GlobalEventHandlers.onmouseup
Window.onmouseup
Window.onmozbeforepaint
Window.onmoztimechange
Window.onpaint
WindowEventHandlers.onpopstate
Window.onreset
Window.onresize
GlobalEventHandlers.onscroll
Window.onscroll
GlobalEventHandlers.onselect
GlobalEventHandlers.onsubmit
WindowEventHandlers.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()
WindowBase64.atob()
Window.back()
Window.blur()
WindowBase64.btoa()
Window.cancelAnimationFrame()
Window.captureEvents()
Window.clearImmediate()
WindowTimers.clearInterval()
WindowTimers.clearTimeout()
Window.close()
Window.confirm()
Window.convertPointFromNodeToPage()
Window.dump()
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()
WindowTimers.setInterval()
WindowTimers.setTimeout()
Window.showModalDialog()
Window.sizeToContent()
Window.stop()
Window.updateCommands()