<html>
<head>
<title>JS</title>
</head>
<body>
<img src ="" class="img-responsive">
</body>
</html>
function () {
var classHeight = document.getElementsByClassName('img-responsive');
for (var i = 0; i < classHeight.length; i++) {
classHeight[i].heigth = "400";
}
}