I am using TWebbrowser in Delphi 5. I am having problems with an ASPX
page that is using smart navigation. In the FORM tag there is an
I am thinking the best way to disable this is to hide the
fact that the browser is IE.
Is there anyway, i can spoof another browser, like say Opera, so that
the web site turns off this smart navigation crapola?
I have tried these already and they failed to work as expected ->
HTMLElement.setAttribute('__smartNavEnabled', false, 0)
HTMLElement.setAttribute('__smartNavEnabled', 'false', 0)
seemed to have any effect.
I tried to set the Headers in the BeforeNavigate event with
Headers := 'User Agent : Opera 6.x yada yada';
but to no avail. Unfortunately, using TWebbrowserWB from EuroMind is not an option.
However, if I check the source for the site when I
navigate with Opera no smart nav stuff is in the FORM tag, but if I
use IE the stuff ends up in the FORM tag.
Perhaps there is an easy way to rewrite the entire FORM tag with new