Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q321 Can I retrieve information in a META tag?

irt.org | Knowledge Base | JavaScript | Misc | Q321 [ previous next ]

Q321 Can I retrieve information in a META tag?

Only on Internet Explorer 4:

<HTML>
<HEAD>
<TITLE>JavaScript No Content Web Site</TITLE>
<META NAME="Keywords" CONTENT="JavaScript, Script, JScript, Articles, Tutorials, Source Code">
<META NAME="Description" CONTENT="This Web Site is dedicated to bringing you the best in JavaScript programming.">

<SCRIPT LANGUAGE="JavaScript1.2"><!--
function test() {
    if (document.all)
        for (var i=0;i < document.all.length; i++)
            if (document.all(i).tagName == 'META')
                alert('charset = ' + document.all(i).charset + '\n' +
                      'className = ' + document.all(i).className + '\n' +
                      'content = ' + document.all(i).content + '\n' +
                      'document = ' + document.all(i).document + '\n' +
                      'httpEquiv = ' + document.all(i).httpEquiv + '\n' +
                      'id = ' + document.all(i).id + '\n' +
                      'isTextEdit = ' + document.all(i).isTextEdit + '\n' +
                      'lang = ' + document.all(i).lang + '\n' +
                      'name = ' + document.all(i).name + '\n' +
                      'parentElement = ' + document.all(i).parentElement + '\n' +
                      'parentTextEdit = ' + document.all(i).parentTextEdit + '\n' +
                      'sourceIndex = ' + document.all(i).sourceIndex + '\n' +
                      'tagName = ' + document.all(i).tagName + '\n' +
                      'title = ' + document.all(i).title + '\n' +
                      'url = ' + document.all(i).url);
}
//--></SCRIPT>

</HEAD>

<BODY onLoad="test()">

</BODY>
</HTML>

Feedback on 'Q321 Can I retrieve information in a META tag?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.