Orders the browser to load the given URL.
The WMLBrowser.go function directs the
browser to load the given URL. To effect this, the WMLScript
interpreter returns control to the WML browser and then the specified
card is loaded. The empty string "" is returned by this function.
If the URL cannot be loaded, the browser will
display the appropriate error message.
Since
calls to the WMLBrowser.go and WMLBrowser.prev functions
override each other, only the last call will determine the settings in
effect.
In WML, the go tag
performs a similar task.
<?xml
version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD
WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1">
<p>
go
example
<br />
always return here
</p>
<do
type="accept">
<go
href="GoExample.wmls#findgo()" />
</do>
</card>
</wml>Code for GoExample.wml
extern function
findgo()
{
WMLBrowser.go("#card1");
};
Code for GoExample.wmls