Create a new HTML document in an editor. For example, type "nano noedit.html" to create a new document using the Nano text editor in Linux. You can use Notepad or any other text editor of your choice. Name the file noedit.html.
Add the HTML headers. Create an input form with two text fields, where the first is not editable and the second is editable. When the first fields gains focus, unfocus the field using the blur method. For example, type:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Cannot edit this field: <input type="text" id="text1" width="30" onfocus="this.blur()"><br/>
Edit this field: <input type="text" id="text2" width="30"/>
Exit the editor and save the file. Navigate to the HTML file in a browser to test the functionality.