set input as not writable code example Example: js making input non typeable //Use readonly <input id="myInput" readonly>