'method' Example : method « Node Operation « JavaScript DHTML
- JavaScript DHTML
- Node Operation
- method
'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>
Related examples in the same category