I've tried putting some client code in the OnLoad event handler of the Window object that checks for an input object. If it finds it, the page is supposed to set the focus to that input object. I thought this event was supposed to fire when the window finishes loading the page, but it doesn't seem to work.
The code looks something like this:
Sub Window_OnLoad()
If IsObject(Input_Two) Then
Document.all.Input_Two.focus
End If
End Sub
I put a line in there to pop up a message box with the value of IsObject(Input_Two), and it always comes up False, but the Input_two object is on the page. It just seems that this code is executing before the page finishes loading. Any suggestions?
Thanks,
Rich
The code looks something like this:
Sub Window_OnLoad()
If IsObject(Input_Two) Then
Document.all.Input_Two.focus
End If
End Sub
I put a line in there to pop up a message box with the value of IsObject(Input_Two), and it always comes up False, but the Input_two object is on the page. It just seems that this code is executing before the page finishes loading. Any suggestions?
Thanks,
Rich