WML Links
A WML card can be set up to display the anchor functions of WML.
The <anchor> tag can be used to set a hypertext link.
It always has the following tasks, which define what to do when the user selects the link, specified:
- <go>: It navigates to the specified URL.
- <noop>: It dictates that no operation should be done.
- <prev>: It is used to navigate back to the previous URL on the history stack.
- <refresh>: It is used to update the current display.
For the example below, when the user clicks the Homepage
, the task says “go to the file http://people.cs.und.edu/~wenchen/index.wml
” .
It is recommended that you use the <a> tag for links rather than the <anchor>
tag.
Remember that you can not nest link elements inside of link elements.
Like the <a>
tag, you can nest the <br>
and <img>
tag in an anchor link element.