I'm trying to set the "readonly" attribute of a "textarea" element this way:
---------------------------------
<script type="text/javascript">
***snip***
//-- create text area element --
var objTextArea;
objTextArea = document.create Element('textar ea');
objTextArea.set Attribute('id', 'textArea' + this.InfoBoxID) ;
objTextArea.set Attribute('rows ', this.TextAreaRo ws);
objTextArea.set Attribute('cols ', this.TextAreaCo ls);
objTextArea.set Attribute('read only', 'readonly');
document.getEle mentById('maste rDiv').parentNo de.appendChild( objTextArea);
document.getEle mentById('textA rea' + this.InfoBoxID) .style.position =
'absolute';
document.getEle mentById('textA rea' + this.InfoBoxID) .innerHTML =
textInTextArea;
//------------------------------
***snip***
</script>
</head>
<body onload="Onload( );" bgcolor="#FFFF9 9">
<div id="masterDiv"> </div>
</body>
---------------------------------
In this code, the textarea is never set to read only. I can always change
the content.
Also how can I had a node without the need to create the <divmasterDiv ??
Thanks in advance!
=============== ==============
Lovens Weche
Sirinik Team - "Games you can't live without"
www.sirinikteam.com
=============== ==============