링크 상대 속성
예시
현재 문서와 연결된 문서 간의 관계를 반환합니다.
var x = document.getElementById("myLink").rel;
정의 및 사용
rel 속성은 현재 문서와 연결된 문서 간의 관계를 정의하는 공백으로 구분된 목록을 설정하거나 반환합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
rel | Yes | Yes | Yes | Yes | Yes |
통사론
rel 속성을 반환합니다.
linkObject.rel
rel 속성을 설정합니다.
linkObject.rel = relationship
속성 값
Value | Description |
---|---|
alternate | Linked page is an alternative version of the current document |
appendix | Linked page is the appendix page for the current document |
chapter | Refers to a chapter |
contents | Linked page is the table of contents for the current document |
copyright | Linked page is the copyright/policy for the current document |
glossary | Linked page is the glossary page for the current document |
help | Linked page is the help page for the current document |
icon | Refers to an icon location |
index | Linked page is the index page for the current document |
next | Refers to the next page |
offline | Refers to a location that contains a path to the CDF file |
prev | Refers to the previous page |
search | Refers to an XML file in OpenSearch description format |
section | Link to a section in a list of documents |
sidebar | Refers to the bookmark panel |
start | Refers to the first page (used by search engines to show the first page) |
stylesheet | Linked page is the style sheet for the current document |
subsection | Linked page is a subsection for the current document |
기술적 세부 사항
반환 값: | 공백으로 구분된 관계 유형 목록을 나타내는 문자열 |
---|
관련 페이지
HTML 참조: HTML <link> rel 속성
❮ 링크 개체