JavaScript Reference/Javascript Properties/rev

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

"rev" Example

   <source lang="javascript">
   

<html> <body> <a id="myL" href="examples.css" target="_self"> relationship </a> <script language="JavaScript">

   document.getElementById("myL").rev = "stylesheet";

</script> </body> </html>


     </source>
   
  


"rev" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <link> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"rev" Possible Values

   <source lang="javascript">

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


     </source>
   
  


"rev" Syntax and Note

   <source lang="javascript">

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


     </source>