GetBrowserInstance (TMSWebbrowser)

Hi,


does this function allows me to get access to e.g. IHTMLDocument3 and how the code would look like? I would like to get access to the input fields to get and set there values.

Kind regards
Andre

Hi, 


For Windows, GetWebBrowserInstance returns an interface IWebBrowser2, which is defined in the System.Win.InternetExplorer unit

Hi Pieter,


thank you for the help. You may consider to add an example or enhancing the Manual as this topic might be relevant for more users. For further references a code snippet:

procedure TForm1.Button2Click(Sender: TObject);
var
  wb2: IWebBrowser2;
  doc: IHTMLDocument2;
begin
  wb2 := TMSFMXWebBrowser1.GetWebBrowserInstance as IWebBrowser2;
  doc := wb2.Document as IHTMLDocument2;
end;

PS. On Android phones this forum is not quite readable.

Kind regards
Andr?


What Android version do you use on the phone?

I use Android 4.4.2. 

Please see a screenshot here http://imgur.com/a/bIixE

Kind regards
André

We'll check if we can apply an improvement for this.