एचटीएमएल डोम मेटा ऑब्जेक्ट
मेटा ऑब्जेक्ट
मेटा ऑब्जेक्ट एक HTML <मेटा> तत्व का प्रतिनिधित्व करता है।
मेटा ऑब्जेक्ट तक पहुंचें
आप getElementsByTagName() का उपयोग करके <meta> तत्व तक पहुंच सकते हैं:
var x = document.getElementsByTagName("META")[0];
एक मेटा ऑब्जेक्ट बनाएं
आप document.createElement() विधि का उपयोग करके <meta> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("META");
मेटा ऑब्जेक्ट गुण
Property | Description |
---|---|
content | Sets or returns the value of the content attribute of a meta element |
httpEquiv | Sets or returns an HTTP header for the information in the content attribute |
name | Sets or returns a name for the information in the content attribute |
scheme | Not supported in HTML5. Sets or returns how the value of the content attribute should be interpreted |
मानक गुण और घटनाएँ
मेटा ऑब्जेक्ट मानक गुणों और घटनाओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML संदर्भ: HTML <मेटा> टैग