Overring base URL programmatically



Hi,

I'm looking for a way to override the base URL of the web browser control.
The content of my web browser control is refreshed using the IPersistStream
interface. And therefore the absolute URL became "about:blank", relative
URLs won't work.

>From what I understand, I can put a <base href="url"> in <header> so that
relative URLs are loaded with this prefix. However, I'm wondering if there's
a way to achieve that from calling some methods of the web browser control?

Plus, there are two things I wanted to achieve.

1. The relative URLs in the HTML page, such as <img src="path/file.gif">
will be loaded with the absolute URL prefix I provided.
2. The relative URLs in the CSS stylesheets, such as table {
background:(path/file.gif) } will be loaded with the absolute URL prefix I
provided.

Is it possible?

Thanks,
--
He Shiming


.