This would work in browsers other than IE:[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Untitled</title> </head> <body> <form> <input value="blah" name="txt"> <input type="checkbox" onclick="this.form.txt.readOnly=this.checked;"> </form> </body> </html>[/code]The incorrect referencing would prevent most browsers other than IE to not execute the code at all and Firefox would at least throw out a warning. And please, Ultimater, do not consider my post as an attempt to insult you or whatever else like you recently did in another case.