<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Free Web tutorials">
</head>
<body>

<h3>A demonstration of how to access a META element</h3>

<p>Click the button to get the content of the meta information.</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function myFunction() {
    var x = document.getElementsByTagName("META")[0].content;
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>