大小写错误,应该为document.form1.textarea1.readOnly

解决方案 »

  1.   

    document.form1.textarea1.readOnly = false;
      

  2.   

    document.form1.textarea1.removeAttribute("readonly");
      

  3.   

    通过脚本访问的属性都区分大小写readOnly Property  Internet Development Index --------------------------------------------------------------------------------Retrieves whether the rule or style sheet is defined on the page or is imported.Syntax[ bReadOnly = ] object.readOnly
    Possible ValuesbReadOnly Boolean that receives one of the following values.false Default. Rule or style sheet is obtained through a link object or the @import rule. 
    true Rule or style sheet is defined on the page. 
     The property is read-only. The property has a default value of false.ResYou cannot modify style sheets obtained through a link object or the @import rule while the designMode property is enabled. For more information, see Introduction to MSHTML Editing.Standards InformationThis property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 . Applies To[ Object Name ] 
    Platform Version 
    Win16:  
    Win32:  
    Windows CE:  
    Unix:  
    Mac:  
    Version data is listed when the mouse hovers over a link, or the link has focus. 
     styleSheet, rule 
    Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. 
     
      

  4.   

    大小写问题,document.form1.textarea1.readOnly = false;