peter
peter

Reputation: 21

opening page in webbrowser

I am using TWebBrowser to open a site.

When it opens, it comes with the message that the webbrowser (ie 9) is out of date and that I should replace it. This is the only time I get it.

How can I avoid it (it makes opening the page realy slow)?

Upvotes: 2

Views: 1773

Answers (2)

whosrdaddy
whosrdaddy

Reputation: 11860

in fact the TWebBrowser is showing the page in IE7 mode by default. You need to add registry keys for your application to force a higher IE mode.

Complete Doc can be found here: http://msdn.microsoft.com/en-us/library/ee330730%28VS.85%29.aspx#browser_emulation

Upvotes: 1

zz1433
zz1433

Reputation: 3586

Websites use User-agent to determine what browser you are using.

Take a look at the following article which will show you how to spoof the user-agent making the website believe you have a different browser. You can use that to mask yourself as the latest firefox/chrome/whatever browser.

http://theroadtodelphi.wordpress.com/2011/03/11/changing-the-ua-user-agent-of-a-twebbrowser-component/

Upvotes: 0

Related Questions