五月综合缴情婷婷六月,色94色欧美sute亚洲线路二,日韩制服国产精品一区,色噜噜一区二区三区,香港三级午夜理伦三级三

您現(xiàn)在的位置: 365建站網(wǎng) > 建站教程 > JavaScript 教程 > HTML DOM rev 屬性

HTML DOM rev 屬性

此節(jié)有 208 人學習過     參與評論

定義和用法

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>

如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答!! 點擊進入論壇

發(fā)表評論 (208人查看,0條評論)
請自覺遵守互聯(lián)網(wǎng)相關的政策法規(guī),嚴禁發(fā)布色情、暴力、反動的言論。
昵稱:
最新評論
------分隔線----------------------------
JavaScript 教程目錄

其它欄目

· 建站教程
· 365學習

業(yè)務咨詢

· 技術支持
· 服務時間:9:00-18:00
365建站網(wǎng)二維碼

Powered by 365建站網(wǎng) RSS地圖 HTML地圖

copyright © 2013-2024 版權所有 鄂ICP備17013400號