Methods property (a)
Specifies or returns a comma-separated list of HTTP METHODS supported by the object and accessible to the user.
This property is poorly supported by browsers and was never used much in HTML documents.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: methods |
Possible values:
String that sets or retrieves a comma-separated list of HTTP methods.
The list of the possible methods:
Represents a request about the available communication options. | |||||||
Retrieves information. | |||||||
Retrieves information without message-body. | |||||||
Posts information. | |||||||
Stores entity under the specified Request-URI. | |||||||
Deletes resource from the specified Request-URI. | |||||||
Gives an advice from the sent request message. | |||||||
Switches proxy to a tunnel (SSL). |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the Methods attribute:
|
||||
<a methods="OPTIONS, PUT"> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the Methods property:
|
||||
<head> <script type="text/javascript"> function GetMethods () { var anchor = document.getElementById ("myAnchor"); alert (anchor.Methods); } </script> </head> <body> <a id="myAnchor" methods="OPTIONS, PUT">a sample link</a> <button onclick="GetMethods ();">Get methods!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
External links:
User Contributed Comments