You cannot use innerHTML for <input> tags because there is no HTML on the inner side. Example of innerHTML...<p> is innerHTML of <div>.
The <input> tag only has properties. You want...Code:<div><p></p></div>
Code:document.getElementById("h1").value...




Reply With Quote