HTMLIFrameElement.addNextPaintListener()
HTMLIFrameElement.clearMatch()
HTMLIFrameElement.download()
HTMLIFrameElement.executeScript()
HTMLIFrameElement.findAll()
HTMLIFrameElement.findNext()
HTMLIFrameElement.getActive()
HTMLIFrameElement.getCanGoBack()
HTMLIFrameElement.getCanGoForward()
HTMLIFrameElement.getContentDimensions()
HTMLIFrameElement.getMainfest()
HTMLIFrameElement.getMuted()
HTMLIFrameElement.getScreenshot()
HTMLIFrameElement.getStructuredData()
HTMLIFrameElement.goBack()
HTMLIFrameElement.goForward()
HTMLIFrameElement.getVisible()
HTMLIFrameElement.getVolume()
HTMLIFrameElement.mute()
HTMLIFrameElement.purgeHistory()
HTMLIFrameElement.reload()
HTMLIFrameElement.removeNextPaintListener()
HTMLIFrameElement.sendMouseEvent()
HTMLIFrameElement.sendTouchEvent()
HTMLIFrameElement.setActive()
HTMLIFrameElement.setInputMethodActive()
HTMLIFrameElement.setNFCFocus()
HTMLIFrameElement.setVisible()
HTMLIFrameElement.setVolume()
HTMLIFrameElement.stop()
HTMLIFrameElement.unmute()
HTMLIFrameElement.zoom()
mozbrowseractivitydone
mozbrowserasyncscroll
mozbrowseraudioplaybackchange
mozbrowsercaretstatechanged
mozbrowserclose
mozbrowsercontextmenu
mozbrowserdocumentfirstpaint
mozbrowsererror
mozbrowserfindchange
mozbrowserfirstpaint
mozbrowsericonchange
mozbrowserloadend
mozbrowserloadstart
mozbrowserlocationchange
mozbrowsermanifestchange
mozbrowsermetachange
mozbrowseropensearch
mozbrowseropentab
mozbrowseropenwindow
mozbrowserresize
mozbrowserscroll
mozbrowserscrollareachanged
mozbrowserscrollviewchange
mozbrowsersecuritychange
mozbrowserselectionstatechanged
mozbrowsershowmodalprompt
mozbrowsertitlechange
mozbrowserusernameandpasswordrequired
mozbrowservisibilitychange
Warning: Removed in Firefox 65.
The download()
method of the HTMLIFrameElement
interface downloads a specified URL, storing it at /sdcard/download
.
var instanceOfDOMRequest = instanceOfHTMLIframeElement.download(url, options);
A DOMRequest
for handling the download request. Its request.onsuccess
handler handles the success case, and its request.onerror
handler handles the failure case.
url
filename
: The filename to save the downloaded file as. If this is not specified, the filename used will be the original filename, as specified in the url
.referrer
: Specifies a referrer for the downloaded file. If this is not specified there will be no referrer.var browser = document.querySelector('iframe'); var request = browser.download(fooURL, { filename: 'foo.bin' }); request.onsuccess = function() { console.log("File downladed"); } request.onerror = function() { console.log("Download error"); }
Not part of any specification.
Supported since Firefox 47, in chrome code only. Removed completely in Firefox 65.
Unlikely ever to be supported in other browsers.