एचटीएमएल डोम एचआर ऑब्जेक्ट
मानव संसाधन वस्तु
HR ऑब्जेक्ट एक HTML <hr> तत्व का प्रतिनिधित्व करता है।
एचआर ऑब्जेक्ट तक पहुंचें
आप getElementById() का उपयोग करके <hr> तत्व तक पहुंच सकते हैं:
उदाहरण
var x = document.getElementById("myHR");
एचआर ऑब्जेक्ट बनाएं
आप document.createElement() विधि का उपयोग करके <hr> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("HR");
मानव संसाधन वस्तु गुण
Property | Description |
---|---|
align | Not supported in HTML5. Use style.textAlign instead. Sets or returns the alignment of a horizontal line |
color | Not supported in HTML5. Use style.color instead. Sets or returns the color of a horizontal line |
noshade | Not supported in HTML5. Sets or returns whether a horizontal line should render in one solid color (noshaded) |
size | Not supported in HTML5. Use style.height instead. Sets or returns the height of a horizontal line |
width | Not supported in HTML5. Use style.width instead. Sets or returns the width of a horizontal line |
मानक गुण और घटनाएँ
एचआर ऑब्जेक्ट मानक गुणों और घटनाओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML संदर्भ: HTML <hr> टैग