w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM revÊôÐÔ
The rev property sets or returns the reverse relationship of a link.
revÊôÐÔ¿ÉÉèÖûò·µ»Ø·´ÏòÁ¬½Ó¹ØÏµ
The rel and rev properties work together.
relºÍrevÊôÐÔµÃÒ»Æð¹¤×÷
The rel (relationship) property specifies a relationship to the target. The rev (reverse) property specifies a reverse link from the target document to the current document.
relÊôÐÔÖ¸¶¨Ä¿±ê¹ØÏµ¡£revÊôÐÔÖ¸¶¨·´ÏòÄ¿±ê¹ØÏµ
These properties are used by search engines to provide a linked navigation menu.
ÕâЩÊôÐÔ±»ËÑË÷ÓÃÀ´Ìṩ±»Á¬½ÓµÄµ¼º½²Ëµ¥
anchorObject.rev=relationship |
Both properties can have one of the following values:
ÕâÁ½¸öÊôÐÔ¿ÉÔÚÏÂÃæÕâЩֵÀïÓµÓÐÆäÖеÄÒ»¸ö£º
| Value Öµ |
Description ÃèÊö |
|---|---|
| appendix | Link to the appendix page of a document Á¬½Óµ½ÎĵµµÄ¸½Â¼Ò³ |
| alternate | Link to an alternative source Á¬½Óµ½ÆäËüÀ´Ô´ |
| bookmark | Link to a bookmark. Often used for "permalink" in web blogs Á¬½Óµ½ÊéÇ©¡£Ò»Ð©blog¾³£Óõ½µÄ¡£ |
| chapter | Link to a chapter from the current documents Á¬½Óµ½µ±Ç°ÎĵµµÄ±êÌâ |
| contents | Link to the table of contents in the current document Á¬½Óµ½µ±Ç°ÎĵµµÄ±í¸ñÄÚÈÝ |
| copyright | Link to copyright or policy page of the current document Á¬½Óµ½µ±Ç°ÎĵµÒ³Öø×÷Ȩ»òÕþ²ß²¿·Ö |
| glossary | Link to glossary page of the document Á¬½Óµ½µ±Ç°ÎĵµµÄ´Ê»ãÒ³ |
| index | Link to the index page of the current document Á¬½Óµ½µ±Ç°ÎĵµµÄË÷ÒýÒ³ |
| next | Link to next page from the current document Á¬½Óµ½µ±Ç°ÎĵµµÄÏÂÒ»Ò³ |
| prev | Link to the previous page from the current document Á¬½Óµ½µ±Ç°ÎĵµµÄǰһҳ |
| section | Link to a section in a list of documents Á¬½Óµ½ÎĵµÇåµ¥Áбí |
| start | Link to the first page of the current documents. Used by search engines to show the first page Á¬½Óµ½µ±Ç°ÎĵµµÄµÚÒ»ÕÅÒ³Ãæ¡£ |
| subsection | Link to a sub-section in a list of current documents. ( Note that a section can have multiple sub-sections) Á¬½Óµ½µ±Ç°ÎĵµµÄ¸±Çåµ¥ÁÐ±í¡£ |
The following example returns the reverse relationship of the link:
·µ»ØÁ¬½ÓµÄ·´Ïò¹ØÏµ
<html> <body> <p><a id="myAnchor" rev="subsection" href="/htmldom/prop_anchor_rev.asp"> HTML DOM rev Property</a></p> <script type="text/javascript">
x=document.getElementById("myAnchor");
document.write(x.rev);
</script>
</body> </html> |
Get the reverse relationship of a link
µÃµ½Á¬½ÓµÄ·´Ïò¹ØÏµ
ÆÀÂÛ (0)
All