<form name="sample">
<input type="text" name="text">
</form>
docuemnt.sample.text.form == document.sample* The <button> tag may be used anywhere in an HTML document and need not be placed within a <form>.
* When the user clicks on a toggle button, the radio or checkbox element triggers its onclick event handler to notify the JavaScript program of the change of state. Newer web browsers also trigger the onchange handler for these elements. Both event handlers convey the same essential information, but the onclick handler is more portable.
沒有留言:
張貼留言