Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html prevent focus on input

<input type="text" id="yourID" value="test" readonly="readonly" /> 

You can change it in javascript with : 

document.getElementById("yourID").readOnly = false; //This enables the possibility to focus
 
PREVIOUS NEXT
Tagged: #html #prevent #focus #input
ADD COMMENT
Topic
Name
9+3 =