Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q321 Can I retrieve information in a META tag?

You are here: irt.org | FAQ | JavaScript | Misc | Q321 [ previous next ]

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?'

©2018 Martin Webb