You cannot use innerHTML for <input> tags because there is no HTML on the inner side. Example of innerHTML...<p> is innerHTML of <div>.

Code:
<div><p></p></div>
The <input> tag only has properties. You want...

Code:
document.getElementById("h1").value...