I have a WebBrowser control which I populate with HTML then display. The HTML contains a few links pointing to anchors in the same page...
<html>
<head></head>
<body>
<a href="#myTarget">jump</a>
<!-- further down page -->
<a name="myTarget"><h2>A heading</h2></a>
</body>
</html>
If I run my app via Visual Studio and load the control the HTML is displayed no problem. I click on a link and it jumps to the anchor as it should.
Ditto if I install my app onto my local machine (ie installed via an MSI not run via Visual Studio). Everything as expected so far.
However if I install and run my application in a WinXP virtual machine the HTML is still displayed as expected but now when I click on a link it behaves as if jumping to a new page. This new page simply contains...
.
<html>
blank#myTarget
</html>
The tags in the HTML generated by my app are exactly the same as I've included in my sample code above.
Could this be a C# issue? Is there a setting of the WebBrowser control I need to edit perhaps?
**Update: Internet Explorer 6.0