WML Home
WML Tags Reference
Selected Reading
© 2011 TutorialsPoint.COM
|
WML <access> Tag
The <access> element provides a simple form of access control for a deck. This allows a deck to specify that only certain other decks may link to it (these decks are known as referring URLs).
There may be no more than one <access> element in a deck, and it must be the first thing inside the <head> element.
Attributes:
The <access> element supports the following attributes:
Attribute | Value | Description |
domain | cdata | Specifies the domain (effectively, the range of servers) from which the referring deck must come. |
path | cdata | Specifies the path within the referring URL that must match. (The path is the part of the URL that specifies a file or directory on the server.) |
class | cdata | Sets a class name for the element. |
id | element ID | A unique ID for the element. |
Example:
Following is the example showing usage of this element:
Access is limited to other decks in www.tutorialspoint.com
<head>
<access domain="www.tutorialspoint.com"/>
</head>
Access is limited to other decks in www.tutorialspoint.com/wml
<head>
<access domain="www.tutorialspoint.com" path="/wml"/>
</head>
|
|
|
|