JavaScript Reference/Javascript Properties/rev — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:21, 26 мая 2010

"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