|
|
Question : Reading META tag content with javascript
|
|
Can I? and then pass it into a variable for further use?
|
Answer : Reading META tag content with javascript
|
|
Only IE4/5 and NN6 with full DOM access allow to read META elements. IE4/5 use document.all.tags('META') NN6 (and IE5) document.getElementsByTagName('META') Here is a complete example reading the elements' content values into an array:
show meta keywords
For browsers not supporting the META element access an empty array is returned.
|
|
|
|