>From here:
http://forums.asp.net/t/1302147.aspx/1>
>SanjaySutar
>Participant
>
>
> Hi,
> thanx 4 ur replies.
> I found the solution. Anything which cannot get focus can be forced to get focus by using scrollIntoView() method.
>
> for e.g document.getElementById('div1').scrollIntoView();
> Works fine in IE and firefox.
>
That was the first thing I tried. But, it doesn't work.
That div is created with CreateElement. I have a reference to it as loDiv. If I try loDiv.scrollIntoView(), it doesn't work. It doesn't give any error however. But, the focus does not get set. As this is created with CreateElement, I cannot use window.parent.document.getElementById("Div").scrollIntoView() as this gives an error.