ä¸ºæ¯ææµè§å¨<iframe>
çéæ±ï¼HTMLIFrameElement
å·²ç»æ©å±äºä¸äºæ°çæ¹æ³æ¥è®©<iframe>
ææ´å¤çè½åãä»ä»¬å¹¶æªæä¸ºè§èï¼åè§ Browser compatibilityï¼ã
以ä¸å¯¼èªæ¹æ³å
许éè¿<iframe>
çæµè§åå²è¿è¡å¯¼èªãä»ä»¬å¯¹äºåéãåè¿ã忢åéæ°å è½½æé®çå®ç°èè¨æ¯é常å¿
é¡»çã
HTMLIFrameElement.reload()
éæ°å è½½<iframe>
å
ç´ å
容ã
HTMLIFrameElement.stop()
忢å è½½<iframe>
å
ç´ å
容ã
HTMLIFrameElement.getCanGoBack()
æç¤ºæ¯å¦å¯ä»¥åéã
HTMLIFrameElement.goBack()
æ¹å<iframe>
ä½ç½®å°ä¸ä¸ä¸ªæµè§åå²è®°å½çä½ç½®ã
HTMLIFrameElement.getCanGoForward()
æç¤ºæ¯å¦å¯ä»¥åè¿ã
HTMLIFrameElement.goForward()
æ¹å<iframe>
ä½ç½®å°ä¸ä¸ä¸ªæµè§åå²è®°å½çä½ç½®ã
è¿ä¸ªæ¹æ³éç®¡çæµè§å¨<iframe>
æç¨çèµæºãå®ä»¬å¯¹äºå®ç°å页æµè§ç¨åºé常æç¨ã
HTMLIFrameElement.executeScript()
卿µè§å¨<iframe>
页é¢å è½½å®æåæ§è¡æå®çèæ¬ã
HTMLIFrameElement.purgeHistory()
æ¸
çææä¸æµè§å¨<iframe>
æå
³çèµæºï¼ä¸å
æ¬ cookieï¼ã
HTMLIFrameElement.setVisible()
ä¿®æ¹æµè§å¨<iframe>
çå¯è§æ§ãè¿ä¼å½±åèµæºåé
åä¸äºå½æ°çèµæºå ç¨çï¼å¦requestAnimationFrame
ã
HTMLIFrameElement.getVisible()
æç¤ºå½åæµè§å¨<iframe>
çå¯è§æ§ã
HTMLIFrameElement.setActive()
设置å½å<iframe>
ä¸ºæ´»å¨ frameï¼å¯¹è¿ç¨ç®¡çå¨å¦ä½ååä¼å
级æå½±åã
HTMLIFrameElement.getActive()
æç¤ºå½åæµè§å¨<iframe>
æ¯å¦ä¸ºå½åæ´»å¨ç frameã
HTMLIFrameElement.setInputMethodActive()
设置å½åæµè§å¨<iframe>
æ¯æ´»å¨çè¾å
¥æ³ç¼è¾å¨çªå£èå
¶ä»ä¸æ¯ãå½ä¸ä¸ªé¡¶å±åºç¨å¸ææ¿æ´»ä¸ä¸ªçªå£ä½ä¸ºè¾å
¥æ³ç¼è¾å¨ï¼å¦é®çï¼æ¶æç¨ã
HTMLIFrameElement.setNfcFocus()
Firefox æä½ç³»ç» NFC API çä¸é¨åï¼æ©å±äºBrowser APIï¼è¿ä¸ªéå设置æµè§å¨<iframe>
æ¯å¦å¯ä»¥æ¥æ¶ä¸ä¸ªNFCäºä»¶ã
以䏿¹æ³å è®¸ç´æ¥æ§å¶æµè§å¨å ç´ ç声é³ã
HTMLIFrameElement.getVolume()
è·åæµè§å¨<iframe>
å½åé³éã
HTMLIFrameElement.setVolume()
设置æµè§å¨<iframe>
å½åé³éã
HTMLIFrameElement.mute()
æµè§å¨<iframe>
ææ¾çææé³é¢éé³ã
HTMLIFrameElement.unmute()
åæ¶æµè§å¨<iframe>
ææ¾ææé³é¢çéé³ã
HTMLIFrameElement.getMuted()
æç¤ºå½åæµè§å¨<iframe>
å½åæ¯å¦è¢«éé³ã
New methods are provided to allow programmatic searches of browser <iframe>
s to be carried out.
HTMLIFrameElement.findAll()
Searches for a string in a browser <iframe>
's content; if found, the first instance of the string relative to the caret position will be highlighted.
HTMLIFrameElement.findNext()
Highlights the next or previous instance of a search result after a findAll()
search has been carried out.
HTMLIFrameElement.clearMatch()
Clears any content highlighted by findAll()
or findNext()
.
In order to manage the browser <iframe>
's content, many new events were added (see below). The following methods are used to deal with those events:
<iframe>
gains support for the methods of the EventTarget
interface
addEventListener()
, removeEventListener()
, and dispatchEvent()
.
HTMLIFrameElement.sendMouseEvent()
Sends a MouseEvent
to the <iframe>
's content.
HTMLIFrameElement.sendTouchEvent()
Sends a TouchEvent
to the <iframe>
's content. Note that this method is available for touch enabled devices only.
HTMLIFrameElement.addNextPaintListener()
Defines a handler to listen for the next MozAfterPaint
event in the browser <iframe>
.
HTMLIFrameElement.removeNextPaintListener()
Removes a handler previously set with addNextPaintListener()
.
Last, there are some utility methods, useful for apps that host a browser <iframe>
.
HTMLIFrameElement.download()
Downloads a specified URL, storing it at the specified filename/path.
HTMLIFrameElement.getContentDimensions()
Retrieves the X and Y dimensions of the content window.
HTMLIFrameElement.getManifest()
Retrieves the manifest of an app loaded in the browser <iframe>
and returns it as JSON.
HTMLIFrameElement.getScreenshot()
Takes a screenshot of the browser <iframe>
's content. This is particularly useful to get thumbnails of tabs in a tabbed browser app.
HTMLIFrameElement.getStructuredData()
Retrieves any structured microdata (and hCard and hCalendar microformat data) contained in the HTML loaded in the browser <iframe>
and returns it as JSON.
HTMLIFrameElement.zoom()
Changes the zoom factor of the browser <iframe>
's content. This is particularly useful for zooming in/out on non-touch-enabled devices.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4