»
EnglishFrenchVietnamese

Print - Locked Textbox - JavaScriptBank.com

Full version: jsB@nk » Snippet » Locked Textbox
URL: https://www.javascriptbank.com/locked-textbox.html

Locked Textbox © JavaScriptBank.comPrevent your visitors from modifying the value stored in a textbox (without using input type=hidden) Just try to change the text in the box! Amazingly, it's a short less than one line script!

Full version: jsB@nk » Snippet » Locked Textbox
URL: https://www.javascriptbank.com/locked-textbox.html



HTML
<form name=form><input type=text name=box value="Locked text!" onFocus="this.blur()" size=12>// an even more reliable method is to use:<input type=text name=box value="Locked text!" onChange="this.value='Locked text!';" size=12 readonly></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->