Read-Only Entry During Page Load

How to make <input type="text" name="mynumber" value="456" /> read-only while my page is loading?


Disable it using disabled="true"

document.getElementById("t1").disabled=true

<input type="text" name="mynumber" id="t1" value="456" disabled="true"/>