JavaScript DHTML/Node Operation/method

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

"method" Example

    
<html>
<body>
<script language=javascript>
    function function1() {
        document.getElementById("myForm").method = "post";
    }
</script>
<form name="myForm" method="get" action="">
<textarea rows="3" cols="200">
</textarea>
</form>
<input type="button" 
       value="Change the mode of transferring the data to "post"" 
       onclick="function1();">
</body>
</html>