<html>
<head>
<meta name="keywords" content="HTML, DHTML, CSS, XHTML, JavaScript">
<meta name="description" content="Free Web tutorials">
<meta name="author" content="Hege Refsnes">
<script>
function displayResult()
{
var x=document.getElementsByTagName("meta");
var txt="";
for (var i=0;i<x.length;i++)
{
txt=txt + "Content of "+(i+1)+". meta tag: "+x[i].content+"<br>";
}
document.getElementById("result").innerHTML=txt;
}
</script>
</head>
<body>
<button type="button" onclick="displayResult()">Display Meta Content</button>
<p id="result"></p>
</body>
</html>