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 purgeHistory()
method of the HTMLIFrameElement
interface is used to clear the browsing history associated with the browser <iframe>
. It only deletes history, not cookies or other stored information.
Note: To delete cookies for a Firefox OS app, you could call clearBrowserData()
on the actual app itself.
There is a DOMRequest
version and a Promise
version:
var myDOMRequest = instanceOfHTMLIframeElement.purgeHistory();
instanceOfHTMLIframeElement.purgeHistory().then(function() { ... });
Either
DOMRequest
object that returns an onsuccess
handler if the history is deleted, or an onerror
handler if not.Promise
that resolves, with no parameters, if the history is deleted, or rejects if not.None.
var browser = document.querySelector('iframe'); var request = browser.purgeHistory(); request.onsuccess = function() { console.log('History deleted!'); } request.onerror = function() { console.error(this.error.name); }
var browser = document.querySelector('iframe');
browser.purgeHistory().then(function() {
console.log('History deleted!');
},
function(error) {
console.error(this.error.name);
});
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.