EXPERIMENT 6
WAP in WML to illustrate use of “go” and “anchor” elements
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id = "card1">
<p>
No variable set<br/>
<anchor>
<go href = "#card2">
<setvar name = "var1" value = "scrumpy"/>
</go>
set var1
</anchor>
</p>
</card>
<card id = "card2">
<p>
The value of var1 is <b>$var1</b>
</p>
</card>
</wml>
No comments:
Post a Comment