HTMLViewer focus on Open

I have a simple window with an HTMLViewer in it. The web page has a text input that is set to auto focus on page load.

I want the window to open and user to be able to immediately start typing in the text input on the web page. I can’t figure out a way for this to work without first clicking in the HTMLViewer.

I tried SetFocus and setting the tab order to 0. Any other ideas? I’m using Windows.


Use JavaScript

Thanks, but I have the js working fine. Works great in chrome and ie.

The issue is I can’t find a way to have the htmlviewer be in focus when the window opens. Any suggestions regarding that?