HTMLAreaElement
åºçº¿
广æ³å¯ç¨
*
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
* æ¤ç¹æ§çæäºé¨åçæ¯æç¨åº¦å¯è½ææä¸åã
HTMLAreaElement æ¥å£æä¾äºä¸äºå±æ§åæ¹æ³ (é¤äºå¸¸è§ç对象HTMLElement æ¥å£æä¾ç屿§åæ¹æ³éè¿ç»§æ¿ä¹è½è·åå°) ç¨æ¥æ§å¶ä¸ä¸ª area å
ç´ çå¸å±åå±ç°ã
屿§
ä»å®çç¶å¯¹è±¡HTMLElementç»§æ¿çï¼è¿æä»URLUtilsç»§æ¿çã
HTMLAreaElement.accessKey-
å¼ä¸ºä¸ä¸ª
Stringç±»åï¼å å«äºä¸ä¸ªç®åçå符代表é®çä¸çä¸ä¸ªæé®ï¼ç¸å½äºå¿«æ·é®ã HTMLAreaElement.alt-
å¼ä¸ºä¸ä¸ª
Stringç±»åï¼ä»£è¡¨äºaltHTML 屿§ï¼å å«ä¸ä¸ª area 对象æ¾ç¤ºå¼å¸¸çæ åµä¸æ¾ç¤ºçå¤ç¨ææ¬å符串ã HTMLAreaElement.coords-
å¼ä¸ºä¸ä¸ª
Stringç±»åï¼ä»£è¡¨äºcoordsHTML 屿§ï¼å å«äºå®ä¹çåºç¸å ³çåæ ã HTMLAreaElement.download-
å¼ä¸ºä¸ä¸ª
Stringç±»åï¼è¡¨ææ¤èµæºæ¯å°è¦è¢«ä¸è½½çèµæºè䏿¯æ¾ç¤ºå¨æµè§å¨é¡µé¢ä¸ãå¼ä¸ºä¸è½½ä¿åæä»¶çæ¨èæä»¶åã妿åå卿ä½ç³»ç»é䏿¯ä¸ä¸ªåæ ¼çæä»¶åæ ¼å¼ï¼æµè§å¨å°ä¼åç¸åºçä¿®æ¹ã URLUtils.hash-
Is a
Stringcontaining the fragment identifier (including the leading hash mark (#)), if any, in the referenced URL. URLUtils.host-
Is a
Stringcontaining the hostname and port (if it's not the default port) in the referenced URL. URLUtils.hostname-
Is a
Stringcontaining the hostname in the referenced URL. URLUtils.href-
Is a
Stringcontaining that reflects thehrefHTML attribute, containing a valid URL of a linked resource. HTMLAreaElement.hreflang-
Is a
Stringcontaining that reflects thehreflangHTML attribute, indicating the language of the linked resource. HTMLAreaElement.media-
Is a
Stringcontaining that reflects themediaHTML attribute, indicating target media of the linked resource. HTMLAreaElement.noHref-
Is a
Booleanflag indicating if the area is inactive (true) or active (false). URLUtils.password-
Is a
Stringcontaining the password specified before the domain name. URLUtils.originåªè¯»-
Returns a
Stringcontaining the origin of the URL, that is its scheme, its domain and its port. URLUtils.pathname-
Is a
Stringcontaining the path name component, if any, of the referenced URL. URLUtils.port-
Is a
Stringcontaining the port component, if any, of the referenced URL. URLUtils.protocol-
Is a
Stringcontaining the protocol component (including trailing colon':'), of the referenced URL. HTMLAreaElement.rel-
Is a
Stringthat reflects therelHTML attribute, indicating relationships of the current document to the linked resource. HTMLAreaElement.relListåªè¯»-
Returns a
DOMTokenListthat reflects therelHTML attribute, indicating relationships of the current document to the linked resource, as a list of tokens. HTMLAreaElement.search-
Is a
Stringcontaining the search element (including leading question mark'?'), if any, of the referenced URL. HTMLAreaElement.shape-
Is a
Stringthat reflects theshapeHTML attribute, indicating the shape of the hot-spot, limited to known values. HTMLAreaElement.tabIndex-
Is a
longcontaining the element's position in the tabbing order. HTMLAreaElement.target-
Is a
Stringthat reflects thetargetHTML attribute, indicating the browsing context in which to open the linked resource. HTMLAreaElement.type-
Is a
Stringthat reflects thetypeHTML attribute, indicating the MIME type of the linked resource. URLUtils.username-
Is a
Stringcontaining the username specified before the domain name.
Methods
Inherits methods from its parent, HTMLElement and implement those from URLUtils.
URLUtils.toString()-
Returns a
Stringcontaining the whole URL of the script executed in theWorker. It is a synonym forURLUtils.href.
Specifications
| è§è |
|---|
| HTML > # htmlareaelement > |
Browser compatibility
See also
- HTML element implementing this interface:
<area>.