Tutorials Point


  WML Home

  WML Tags Reference
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

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:

AttributeValueDescription
domaincdataSpecifies the domain (effectively, the range of servers) from which the referring deck must come.
pathcdataSpecifies 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.)
classcdataSets a class name for the element.
idelement IDA 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>


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names