Ian Thomas wrote:

> Fred Figueiredo wrote:
> 
>> After this I call a funcion that does:
>> ....
>> main.document.t.value="hello";
>> ...
> 
> 
> Is t an element (ie using document.all)? If so, you should be doing 
> main.document.getElementById('t').value="hello";
> 
> Ian
> 

He didn't give the <input> tag an id.  He only gave it a name.
Try using main.document.write('<input type=text name="t" id="t">');
and then use document.getElementById('t') and it should work.


Reply via email to