Latest web development tutorials
×

JavaScript & HTML DOM คู่มืออ้างอิง

ภาพรวม

JavaScript วัตถุ

JavaScript Array วัตถุ JavaScript Boolean วัตถุ JavaScript Date วัตถุ JavaScript Math วัตถุ JavaScript Number วัตถุ JavaScript String วัตถุ JavaScript RegExp วัตถุ JavaScript อสังหาริมทรัพย์ทั่วโลก / ฟังก์ชั่น JavaScript ผู้ประกอบการ

Browser วัตถุ

Window วัตถุ Navigator วัตถุ Screen วัตถุ History วัตถุ Location วัตถุ

DOM วัตถุ

HTML DOM Document วัตถุ HTML DOM วัตถุธาตุ HTML DOM แอตทริบิวต์วัตถุ HTML DOM วัตถุที่จัดกิจกรรม

HTML วัตถุ

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

วัตถุปุ่ม HTML DOM

ปุ่มวัตถุ

วัตถุที่แสดงให้เห็นถึงปุ่มปุ่ม

ในเอกสาร HTML <ปุ่ม> แท็กปรากฏขึ้นทุกครั้งวัตถุปุ่มจะถูกสร้างขึ้น

ในองค์ประกอบที่ปุ่ม HTML คุณสามารถเพิ่มเนื้อหาเช่นข้อความหรือภาพซึ่งจะแตกต่างจากการป้อนข้อมูลปุ่ม (ปุ่ม) พิมพ์


แอตทริบิวต์ปุ่มวัตถุ

W3C: มาตรฐาน W3C

属性 描述 W3C
disabled 设置或返回是否禁用按钮。 Yes
form 返回对包含按钮的表单的引用。 Yes
name 设置或返回按钮的名称。 Yes
type 返回按钮的表单类型。 Yes
value 设置或返回显示在按钮上的文本。 Yes

คุณสมบัติมาตรฐานและเหตุการณ์ที่เกิดขึ้น

วัตถุปุ่มนอกจากนี้ยังสนับสนุนมาตรฐาน คุณลักษณะ และ เหตุการณ์ที่เกิดขึ้น