Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Html :: jquery demo 
Html :: change text width html 
Html :: bootstrap date search 
Html :: is html easy? 
Html :: word inhoudsopgave 
Html :: nuxt-lazy-load ignore images 
Html :: grepper logo 
Html :: host images for free html 
Html :: make text bold js 
Html :: html how to move element to the bottom right of page 
Html :: html table title 
Html :: onclick show div and hide other div 
Html :: change color of icon css 
Html :: how to shift div to right 
Html :: image cut by div border 
Html :: youtube start end 
Html :: button bootstrap 
Html :: image as banner html 
Html :: use svg as favicon react 
Html :: search button 
Html :: captcha code 
Html :: spaces html 
Html :: omega ruby 
Html :: bootstrap 4 text color 
Html :: bootstrap 4 multiple file upload 
Html :: html how to play gifs 
Html :: email confirmation html template 
Html :: bootrsrap 
Html :: table rows html 
Html :: boilerplate code in html 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =