<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>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_meta_get by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:07:44 GMT -->
</html>