JavaScript Reference/Javascript Properties/rev
"rev" Example
<html>
<body>
<a id="myL" href="examples.css" target="_self">
relationship
</a>
<script language="JavaScript">
document.getElementById("myL").rev = "stylesheet";
</script>
</body>
</html>
"rev" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <link> |
+----------------+--------------------------------------------------------------+
"rev" Possible Values
Possible Values
Alternate a substitute file
Appendix an appendix page
Bookmark
Chapter a chapter page
Contents the table of contents
Copyright Glossary
Help
Index the index page
Next the next page
Prev the previous page
Section a page that is a section of a group of pages
Shortcut Icon the href to an icon
Start the first page
Stylesheet
Subsection a subsection page
"rev" Syntax and Note
Note:
Read and write property.
Specifies the relationship between the href destination and the element.
This is like the rel property, but the opposite point of view.
Syntax:
document.getElementById("elementID").rev = value
document.all.elementID.rev = value // IE only