Html is familiar to people who are learning web design. They usually come into contact with Html, but Html is so profound, so there is a lot of content that web designers can't understand, so how to make Html text box not editable ? In fact, the method is very simple, we can solve this problem by replacing the attributes and adding code. The following small series introduces you to the Win10 system to make the Html text box uneditable.
Solutions:
In the contents of the text box will only be used to do so and does not allow users to freely modify the presentation is very necessary.
Specific steps:
Method 1: Set the readonly property to true.
Html codes
Method two: disabled property set to true.
Html codes
Tips: difference
readonly disabled and that the latter is provided with a complete ban on the attribute object interaction (expressed as non-rewritable, non Submit, etc.), readonly is committable.
Code word explanation:
1. onfocus Fires when the object gets focus.
2, focus makes the object get the focus.
3, onblur Triggered when the object loses input focus.
4. Blur blurs the contents of the object so that it appears to lose focus.
The above is the solution for the Win10 system that allows you to edit the Html text box. There are three methods. The first and second are replacement attributes, and the third is to add code. I feel that you can choose a method that suits your needs.
Method 1: ClassicShell replace win10 system start menu 1, please go to Baidu search download Classi
In fact, in the Win10 system, Microsoft has a culture of the explorer.exe process, and the name of t
If there are important files on Win10, you want to delete them permanently, instead of going to the
1. Right click on the taskbar to see the right-click menu of the taskbar. 2. Click on “Task Ma
How to enable data traffic awareness function in Win10 Build9860
Win10 system open excel2010 Chinese garbled how to solve
How to get the Win10 preview? Can the
Win10 system Cortana function how to identify Chinese tutorial
Win10 new features summary inventory
How to view the start menu shortcuts in Win10 system
Win10 prompts "Windows internal version license is about to expire" What is the reason
How to hide the library folder
Dual System Sets Shared Virtual Memory to Avoid Waste of Disk Space
Win10 boot twice to enter the system how to do?
Win10 provides a new feature to reset: one-click spike pre-installed software
How to completely remove the U disk virus autorun.inf
How to completely shut down the firewall
How to make the Win8 system photo application display the picture in the computer
Win10 uses WIN+E to open this computer's setup skills
Improve XP system speed nine skills
How does the Win7 system use DOS commands to view ports? Win7 system view port command
Batch data is classified as skill
Easily add dates and text to photos without using PS
What does Appdata mean, what files can be deleted by appdata?