rev property (a, link)
This property contains information for the author only, there isn't any functionality assigned to this property.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: rev |
Possible values:
String that sets or retrieves a space-separated list of relation types.
The list of the supported relation types:
Designates substitute versions for the document in which the link occurs. | |||||||
Page that is an appendix for the set of pages. | |||||||
Bookmark. | |||||||
Refers to a document serving as a chapter in a collection of documents. | |||||||
Refers to a document serving as a table of contents. | |||||||
Copyright notice. | |||||||
Glossary for the page. | |||||||
Help document. | |||||||
Refers to a document providing an index for the current document. | |||||||
Refers to the next document in a sequence. | |||||||
Refers to the previous document in a sequence. | |||||||
Page that is a section for a set of pages. | |||||||
Refers to the first document. | |||||||
Refers to an external style sheet. | |||||||
Page that is a subsection for a set of pages. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the rev attribute:
|
||||
<a name="topBookmark" href="#bottomBookmark" rev="Bookmark">Jump to the bottom of the page</a> <div style="height:2000px"></div> <a name="bottomBookmark" href="#topBookmark" rev="Bookmark">Jump to the top of the page</a> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the rev property:
|
||||
<head> <script type="text/javascript"> function GetRelationType () { var anchor = document.getElementById ("firstAnchor"); alert ("The rev property of the first anchor is: " + anchor.rev); } </script> </head> <body> <a id="firstAnchor" name="topBookmark" href="#bottomBookmark" rev="Bookmark">Jump to the bottom of the page</a> <br/><br/><br/> <button onclick="GetRelationType ();">Get relation!</button> <div style="height:2000px"></div> <a name="bottomBookmark" href="#topBookmark" rev="Bookmark">Jump to the top of the page</a> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
Related pages:
External links:
User Contributed Comments