Let's say you have a TWebBrowser component, named "webBrowser1", on a form. To navigate to the About Delphi Programming site main page you can use the next code line:
webBrowser1.Navigate('http://delphi.com') ;
If, for whatever the reason is, you have to clear the web browser window, "reset" it, and display an empty page, you need to navigate to a "blank" page.
Here's
how do "reset" the TWebBrowser to display a blank, empty page: webBrowser1.Navigate('about:blank') ;
2 comments
Thanks. This is something that is really useful to know.
ReplyThank you! Just what I needed!
ReplyPost a Comment