The contentWindow
property returns the Window object of an <iframe> element. You can use this Window
object to access the iframe's document and its internal DOM. This attribute is read-only, but its properties can be manipulated like the global Window
object.
See also
HTMLIFrameElement
- Properties
contentWindow
referrerPolicy
- Methods
addNextPaintListener()
clearMatch()
download()
executeScript()
findAll()
findNext()
getActive()
getCanGoBack()
getCanGoForward()
getContentDimensions()
getManifest()
getMuted()
getScreenshot()
getStructuredData()
getVisible()
getVolume()
goBack()
goForward()
mute()
purgeHistory()
reload()
removeNextPaintListener()
sendMouseEvent()
sendTouchEvent()
setActive()
setInputMethodActive()
setNfcFocus()
setVisible()
setVolume()
stop()
unmute()
zoom()
- Inheritance:
- Events
abort
autocomplete
autocompleteerror
DOMContentLoaded
afterprint
afterscriptexecute
beforeprint
beforescriptexecute
beforeunload
blur
cancel
change
click
close
connect
contextmenu
error
focus
hashchange
input
invalid
languagechange
load
loadend
loadstart
message
offline
online
open
pagehide
pageshow
popstate
progress
readystatechange
reset
select
show
sort
storage
submit
toggle
unload
loadeddata
loadedmetadata
canplay
playing
play
canplaythrough
seeked
seeking
stalled
suspend
timeupdate
volumechange
waiting
durationchange
emptied
- Related pages for HTML DOM
BeforeUnloadEvent
DOMStringMap
ErrorEvent
GlobalEventHandlers
HTMLAnchorElement
HTMLAreaElement
HTMLAudioElement
HTMLBRElement
HTMLBaseElement
HTMLBaseFontElement
HTMLBodyElement
HTMLButtonElement
HTMLCanvasElement
HTMLContentElement
HTMLDListElement
HTMLDataElement
HTMLDataListElement
HTMLDialogElement
HTMLDivElement
HTMLDocument
HTMLElement
HTMLEmbedElement
HTMLFieldSetElement
HTMLFormControlsCollection
HTMLFormElement
HTMLFrameSetElement
HTMLHRElement
HTMLHeadElement
HTMLHeadingElement
HTMLHtmlElement
HTMLImageElement
HTMLInputElement
HTMLIsIndexElement
HTMLKeygenElement
HTMLLIElement
HTMLLabelElement
HTMLLegendElement
HTMLLinkElement
HTMLMapElement
HTMLMediaElement
HTMLMetaElement
HTMLMeterElement
HTMLModElement
HTMLOListElement
HTMLObjectElement
HTMLOptGroupElement
HTMLOptionElement
HTMLOptionsCollection
HTMLOutputElement
HTMLParagraphElement
HTMLParamElement
HTMLPictureElement
HTMLPreElement
HTMLProgressElement
HTMLQuoteElement
HTMLScriptElement
HTMLSelectElement
HTMLShadowElement
HTMLSourceElement
HTMLSpanElement
HTMLStyleElement
HTMLTableCaptionElement
HTMLTableCellElement
HTMLTableColElement
HTMLTableDataCellElement
HTMLTableElement
HTMLTableHeaderCellElement
HTMLTableRowElement
HTMLTableSectionElement
HTMLTemplateElement
HTMLTextAreaElement
HTMLTimeElement
HTMLTitleElement
HTMLTrackElement
HTMLUListElement
HTMLUnknownElement
HTMLVideoElement
HashChangeEvent
History
ImageData
Location
MessageChannel
MessageEvent
MessagePort
Navigator
NavigatorGeolocation
NavigatorID
NavigatorLanguage
NavigatorOnLine
NavigatorPlugins
PageTransitionEvent
Plugin
PluginArray
PopStateEvent
PortCollection
RadioNodeList
Transferable
ValidityState
WebVTT
Window
WindowBase64
WindowEventHandlers
WindowTimers