PDA

Click to See Complete Forum and Search --> : Problem with webbrowser control


bombfunk
Dec 25th, 2000, 11:30 AM
How can you set focus on an form object that is on a webpage in a webbrowser control?

I've tried

webbrowser1.document.forms(0).OBJECT_NAME.setfocus

but this doesn't work.

Could somebody please help?

itay222
Dec 26th, 2000, 06:43 AM
first of all, i don't know, but here are some ideas:

in dhtml, in order to do that the syntax is:
document.FormName.InputName.focus();
(so try that instead of setfocus).

well, i ran out of ideas...
itay.