WML learning (4): anchor and task

Source: Internet
Author: User
Anchor and task connection are the most basic functions of HTML pages. in WML, ahref = "url" title = "label" and/a are also used to contain the text used to establish the connection, the required href attribute specifies the URL to be opened. the optional title attribute marks the connection.

Anchor and task
Connection is the most basic function in HTML pages. in WML, the sum is used to contain the text used to establish the connection. the required property href specifies the URL to be opened, the optional title attribute gives the connection a tag name, which will be used as the ACCEPT key of one of the soft buttons (see previous HDML entry articles, therefore, attributes can be used as prompt text.

However, the preceding connection is only a task in WML. to be able to apply other tasks, a new label text is introduced.When the task label is Simple expression method.

Test3.wml
---------------






News

Sports





The task labels in WML include the following:

1) Used to prompt the browser to display the specified URL, including the first CARD or specified CARD of DECK. Syntax:
  
  
  
  

The href attribute is required, and the others are optional. The sendreferer attribute indicates whether to pass the URL of the page that calls the URL specified by href, that is, the URL of the current page, that is, HTTP_REFERER in the HTTP header. the default value is false. the optional value is true. Method is the same as the method attribute of FORM in HTML. it specifies whether the FORM is submitted in the get or post method for cgi processing. the default value is get, but if method is not specified Exists The mobile phone sends messages by post. The accept-charset attribute can enclose the character set specified in the HTTP header and can write multiple character sets, such as accept-charset = 'utf-8, US-ASCII, ISO-8859-1 '.

   It can be viewed as You can transmit data in the form of "variable name/value" to a specified URL. Both the name and value attributes are required. Note that only the variables here are used to submit to the CGI program.

Besides , You can also And Join one or more sentences This statement is used to assign values to variables when an event is triggered.

Note that when And Use This is quite special, such News.

2) Used to press the URL of the current page into the URL history stack and open the previous URL. if the URL does not exist Invalid. Similar syntax : , And You can join one or more sentences. . If this parameter is not added, it must be changed The situation.

3) Used to refresh the current page so that the variables in the page are refreshed. The syntax is .

4) And does nothing. this label cannot be used, and is generally used to enclose the DECK-level (Will be clarified later)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.