"unknown runtime error" writing innerHTML

admin

Administrator
Staff member
I want to write the value of a textbox into the innerHTML of a script tag. the DOM path and all is fine, the script recognizes the new script tag and its innerHTML property and everything, but when i try to write to it, i get an "unknown runtime error". here's a watered down version of what i've got now:

<script> //main script

function workIt()
{
window.caller.innerHTML = phone.value;
}
</script>

<script id="caller"></script> <!--where i want to write to-->

<form onSubmit="workIt()">
<textarea id=phone></textarea>
</form>

this is exclusively for IE5.0+, i'm using it as my active desktop
 
Back
Top