JavaScript Reference/Javascript Properties/Methods

Материал из Web эксперт
Перейти к: навигация, поиск

"Methods" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript">

   function function1() {
       document.all.myL.Methods = "post";
   }

</script> <a id="myL" href="http://www.wbex.ru/">wbex Home Page</a> <input type="button" value="Change mode to "post"" onclick="function1();"> </body> </html>


     </source>
   
  


"Methods" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"Methods" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Defines a comma-separated list of the HTTP methods for accessing the destination document.

Syntax:

document.all.aID.Methods = value


     </source>