In your XML, you can use something like this:
code:
<Control xsi:type="BrowserControl" Id="Nav">
<Position Left="5" Top="5" Width="200" Height="150"/>
<!-- These are some extra attributes. You don't need them to make it work, but it's just to show you how you should put them in the XML. Take a look at the scripting documentation! -->
<Attributes>
<HasBorder>true</HasBorder>
<AllowFindText>true</AllowFindText>
<AllowPrint>true</AllowPrint>
</Attributes>
</Control>
where
Nav is the desired control ID, and use the following JScript to make it do something useful:
code:
var BrowserInterface = PlusWnd.Browser_GetInterface("Nav");
BrowserInterface.Navigate2("http://www.google.com/");
or shorter:
code:
PlusWnd.Browser_GetInterface("Nav").Navigate2("http://www.google.com/");
where
PlusWnd is the PlusWnd object containing the
Nav browser control.
For more information about what you can do with this BrowserInterface object, go to the
MSDN InternetExplorer Object reference.
ALTHOUGH I HIGHLY RECOMMEND YOU TO TRY FIRST BEFORE ASKING, AS TRYING SOMETHING IS THE ONLY WAY TO LEARN IT!!!