| nsIWebNavigation and snippet | [ << Previous | Contents | Next >> ] |
Implemented by Gecko and provides methods for...
This snippet will cause a URL to be loaded by Gecko. The contents will be rendered in the window you just setup.
#include "nsIWebNavigation.h"
nsCOMPtr<nsIWebNavigation> webNav = do_QueryInterface(webBrowser);
// Load a URI.
rv = webNav->LoadURI(
NS_ConvertASCIItoUCS2("www.mozilla.org").get(),
LOAD_FLAGS_NONE);
if (NS_FAILED(rv)) return rv;
|
|