Kbase 19112: JavaScript: How to Make Text Field Read Only Using Blur()
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/09/1999 |
|
SUMMARY:
This solution applies to Progress WebSpeed Versions 2.0, 2.1, and
3.0. It provides sample code that demonstrates how to make a text input field read only by using Javascript.
SOLUTION:
Create a new HTML document with the following code:
<html>
<body>
<title>Read Only Example</title>
<form name="myform"> <input type="text" size="20"
name="Fld1" value="myval"
onfocus="this.blur()">
</form>
</body>
</html>