एंकर रिले संपत्ति
उदाहरण
किसी लिंक की rel विशेषता का मान लौटाएं:
var x = document.getElementById("myAnchor").rel;
परिभाषा और उपयोग
rel गुण किसी लिंक की rel विशेषता का मान सेट या लौटाता है।
रिले विशेषता वर्तमान दस्तावेज़ और लिंक किए गए दस्तावेज़ के बीच संबंध निर्दिष्ट करती है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
rel | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
रिले संपत्ति वापस करें:
anchorObject.rel
रिले प्रॉपर्टी सेट करें:
anchorObject.rel = "value"
सम्पत्ति की कीमत
Value | Description |
---|---|
alternate | An alternate version of the document (i.e. print page, translated or mirror) |
author | The author of the document |
bookmark | A related document |
help | A help document |
licence | Copyright information for the document |
next | The next document in a selection |
nofollow | "nofollow" is used by Google, to specify that the Google search spider should not follow that link (mostly used for paid links) |
noreferrer | Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink |
prefetch | Specifies that the target document should be cached |
prev | The previous document in a selection |
search | A search tool for the document |
tag | A tag (keyword) for the current document |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, वर्तमान दस्तावेज़ और लिंक किए गए दस्तावेज़ के बीच संबंध का प्रतिनिधित्व करता है |
---|
और ज्यादा उदाहरण
उदाहरण
rel एट्रिब्यूट का मान "nofollow" पर सेट करें:
document.getElementById("myAnchor").rel = "nofollow";
संबंधित पृष्ठ
HTML संदर्भ: HTML <a> rel विशेषता
एंकर वस्तु