Webmaster

Wap/WML : Links
Contents ]
Jean-Michel Blanchard

Special Links

WML provides a tag that does not exist in HTML, which enables you to create special links: <anchor>. It must be associated with a particular command.

Standard link

The first possibility for using the <anchor> tag is to create a link to a second deck. To do this, you just have to assign it the <go/> command.

Example:

<anchor>
News
<go href="page2.wml"/>
</anchor>

This command is equivalent to the standard link: <a href="page2.wml">News</a>. For the sake of readability, preference is even given to the second method.

Enlivening a page

To update card data on screen, just create a special link enabling you to again display the data. To do this, we use the </refresh> command:

<anchor>
Refresh the page
</refresh>
</anchor>

Previous page

It is very easy to create a reverse link that permits you to jump back to a previous page. To do this, we use the </prev> command:

<anchor>
Back
</prev>
</anchor>

Simple ... WML really simplifies certain HTML syntaxes. Remember that, in order to create a link to the previous page from a HTML page, you would have to use JavaScript.




  1   2   3