<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="shit happens">
<meta name="description" content="gg">
<title>ГГ</title>
<style>
*{
margin:0;
padding:0;
outline: 0;
}
input {
margin: 50px;
width: 50px;
height: 50px;
background-color: #fa4;
}
</style>
</head>
<body>
<input type="button" class="button">
<script>
document.getElementsByClassName('button')[0].onclick = function(){
var meta = document.getElementsByTagName('meta');
meta[1].content += "h";
meta[2].content += "g";
alert(meta[1].content);
alert(meta[2].content);
}
</script>
</body>
</html>