HTML DOM rev 属性

w3school 在线教程

## JS & DOM 参考手册

- 参考手册目录

## JavaScript 对象

- JS Array
- JS Boolean
- JS Date
- JS Math
- JS Number
- JS String
- JS RegExp
- JS Functions
- JS Events

## Browser 对象

- Window
- Navigator
- Screen
- History
- Location

## HTML DOM 对象

- DOM Document
- DOM Element
- DOM Attribute
- DOM Event

## HTML 对象

- <a>
- <area>
- <audio>
- <base>
- <body>
- <blockquote>
- <button>
- <canvas>
- <col>
- <colgroup>
- <datalist>
- <del>
- <details>
- <dialog>
- <embed>
- <fieldset>
- <form>
- <frame>
- <frameset>
- <iframe>
- <img>
- <ins>
- <input> button
- <input> checkbox
- <input> color
- <input> date
- <input> datetime
- <input> datetime-local
- <input> email
- <input> file
- <input> hidden
- <input> image
- <input> month
- <input> number
- <input> password
- <input> range
- <input> radio
- <input> reset
- <input> search
- <input> submit
- <input> text
- <input> time
- <input> url
- <input> week
- <keygen>
- <label>
- <legend>
- <li>
- <link>
- <map>
- <menu>
- <menuitem>
- <meta>
- <meter>
- <object>
- <ol>
- <optgroup>
- <option>
- <param>
- <progress>
- <q>
- <script>
- <select>
- <source>
- <style>
- <table>
- <td>
- <th>
- <tr>
- <textarea>
- <time>
- <title>
- <track>
- <video>

## 建站手册

- 网站构建
- 万维网联盟 (W3C)
- 浏览器信息
- 网站品质
- 语义网
- 职业规划
- 网站主机

## 关于 W3School

## 帮助 W3School

## 广告刊例

# HTML DOM rev 属性

HTML DOM Link 对象

## 定义和用法

The rev property sets or returns the relationship between the target URL and the current document.

The rel and rev properties work together. Those two properties are used by search engines to provide a linked navigation menu.

### 语法

    linkObject.rev=relationship

The rel property can have one of the following values:

Value | Description
--- | ---
appendix | Link to the appendix page of the document
alternate | Link to an alternative source of the document
bookmark | Link to a bookmark
chapter | Link to a chapter
contents | Link to the table of contents of the document
copyright | Link to copyright or the policy of the document
glossary | Link to the glossary page of the document
index | Link to the index page of the document
next | Link to the next page
prev | Link to the previous page
section | Link to a section in a list of documents
start | Link to the first page (used by search engines to show the first page)
stylesheet | Link to the style sheet of the document.
subsection | Link to a sub-section in a list of current documents

## 实例

The following example returns the relationship between the target URL and the current document:

    <html>
    <head>
    <link rev="subsection" id="link1"
    href="/htmldom/prop_link_rev.asp" />
    </head>
    <body>

    <script type="text/javascript">
    x=document.getElementById("link1");
    document.write("Reverse relationship: " + x.rev);
    document.write("<br />This page is a subsection of: ");
    document.write(x.href);
    </script>

    </body>
    </html>

## TIY

Return the reverse relationship of a <link> element

HTML DOM Link 对象