Forums

This topic is locked

Write text to a textarea in another frame

Posted 05 Mar 2005 20:28:04
1
has voted
05 Mar 2005 20:28:04 lg k posted:
Can anyone help me tweak this script to write to a textarea instead of the the doc body?Please and thankyou.



<SCRIPT LANGUAGE="JScript">
function fnAdddt(){
parent.otherframe.document.body.insertAdjacentHTML("BeforeEnd", "<br>" + timeText.value +"<br>";
}
</SCRIPT>


<SELECT ID=timeText>
<OPTION VALUE="">Time</OPTION>
<OPTION VALUE="Need Repairs Done By...8-00 am..">8-00 am</OPTION>
</SELECT>
<INPUT TYPE=button VALUE="Add To Repair Order" onclick="fnAdddt()">

Reply to this topic