hi i am tring to make a n object get the focus like this
RitchText.focus();
but for some reason it does not work with
document.getElementById('RitchText_suc1').focus();
the defenition for the object is like this
<iframe class='RitchText' height='99px'
width='593px' ID="RitchText" >
</iframe>
what is the diference between refrencing an object directly by its name, nad by the "getElementById" method in the document object?
the problem is that i cant use the direct name because i wont know the name (id) of the <IFRAME>. so dinamically(getElementById) is the only way to go for me.
thank you in advance.
RitchText.focus();
but for some reason it does not work with
document.getElementById('RitchText_suc1').focus();
the defenition for the object is like this
<iframe class='RitchText' height='99px'
width='593px' ID="RitchText" >
</iframe>
what is the diference between refrencing an object directly by its name, nad by the "getElementById" method in the document object?
the problem is that i cant use the direct name because i wont know the name (id) of the <IFRAME>. so dinamically(getElementById) is the only way to go for me.
thank you in advance.