Overring base URL programmatically
- From: "He Shiming" <mailbill(NOSPAM)@21cn.com.nospam>
- Date: Mon, 17 Oct 2005 15:17:40 +0800
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
.
- Follow-Ups:
- Re: Overring base URL programmatically
- From: jiangsheng[MVP]
- Re: Overring base URL programmatically
- Prev by Date: WebBrowser com exception
- Next by Date: Re: Overring base URL programmatically
- Previous by thread: WebBrowser com exception
- Next by thread: Re: Overring base URL programmatically
- Index(es):