home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 133 / dpcs0399.iso / INTERNET / COFFEE / HTMLED55 / SETUP.EXE / file0134.bin < prev    next >
Encoding:
Text File  |  1998-11-04  |  7.2 KB  |  81 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
  2.    "http://www.w3.org/TR/REC-html40/strict.dtd">
  3. <html lang=en>
  4. <head>
  5. <title>BUTTON - Button</title>
  6. <link rev=Made href="mailto:liam@htmlhelp.com">
  7. <link rel=Start href="../index.html">
  8. <link rel=Glossary href="http://www.htmlhelp.com/glossary/glossary.html">
  9. <link rel=Copyright href="http://www.htmlhelp.com/copyright.html">
  10. <link rel=StyleSheet href="../style.css" type="text/css">
  11. <link rel=StyleSheet href="../aural.css" type="text/css" media=aural>
  12. <meta name="author" content="Liam Quinn">
  13. <meta name="description" content="A description of HTML 4.0's BUTTON element for submit, reset, or push buttons.">
  14. <meta name="keywords" content="BUTTON, button element, submit, reset, push, forms, form, HyperText Markup Language, HTML, HTML4, HTML 4.0, Web Design Group, WDG, <button> tag, <BUTTON> tag">
  15. </head>
  16. <body>
  17. <h2><img src="../wdglogo1.gif" width=250 height=83 alt="The Web Design Group"></h2>
  18. <h1>BUTTON - Button</h1>
  19. <table>
  20.   <tr valign=top>
  21.     <th>Syntax</th>
  22.     <td><strong class=required><BUTTON></strong>...<strong class=required></BUTTON></strong></td>
  23.   </tr>
  24.   <tr valign=top>
  25.     <th>Attribute Specifications</th>
  26.     <td>
  27.       <ul>
  28.         <li>NAME=<var><a href="../values.html#cdata">CDATA</a></var> (key in submitted form)</li>
  29.         <li>VALUE=<var><a href="../values.html#cdata">CDATA</a></var> (value in submitted form)</li>
  30.         <li>TYPE=[ <em class=default>submit</em> | reset | buttoná] (type of button)</li>
  31.         <li>DISABLED (disable button)</li>
  32.         <li>ACCESSKEY=<var><a href="../values.html#character">Character</a></var> (shortcut key)</li>
  33.         <li>TABINDEX=<var><a href="../values.html#number">Number</a></var> (position in tabbing order)</li>
  34.         <li>ONFOCUS=<var><a href="../values.html#script">Script</a></var> (element received focus)</li>
  35.         <li>ONBLUR=<var><a href="../values.html#script">Script</a></var> (element lost focus)</li>
  36.         <li><a href="../attrs.html">common attributes</a></li>
  37.       </ul>
  38.     </td>
  39.   </tr>
  40.   <tr valign=top>
  41.     <th>Contents</th>
  42.     <td>
  43.       <ul>
  44.         <li><a href="../inline.html">Inline elements</a> except <a href="../special/a.html">A</a>, <a href="input.html">INPUT</a>, <a href="select.html">SELECT</a>, <a href="textarea.html">TEXTAREA</a>, <a href="label.html">LABEL</a>, BUTTON, and <a href="../special/iframe.html">IFRAME</a></li>
  45.         <li><a href="../block.html">Block-level elements</a> except <a href="form.html">FORM</a>, <a href="../block/isindex.html">ISINDEX</a>, and <a href="fieldset.html">FIELDSET</a></li>
  46.       </ul>
  47.     </td>
  48.   </tr>
  49.   <tr valign=top>
  50.     <th>Contained in</th>
  51.     <td><a href="../block.html">Block-level elements</a>, <a href="../inline.html">inline elements</a> except BUTTON</td>
  52.   </tr>
  53. </table>
  54. <p>The <strong class=html>BUTTON</strong> element defines a <em>submit button, reset button, or push button</em>. Authors can also use <strong class=html><a href="input.html">INPUT</a></strong> to specify these buttons, but the <strong class=html>BUTTON</strong> element allows richer labels, including images and emphasis. However, <strong class=html>BUTTON</strong> is new in HTMLá4.0 and poorly supported among current browsers, so <strong class=html>INPUT</strong> is a more reliable choice at this time.</p>
  55. <p>The <strong class=html>TYPE</strong> attribute of <strong class=html>BUTTON</strong> specifies the kind of button and takes the value <strong class=html>submit</strong> (the default), <strong class=html>reset</strong>, or <strong class=html>button</strong>. The <strong class=html>NAME</strong> and <strong class=html>VALUE</strong> attributes determine the name/value pair sent to the server when a submit button is pushed. These attributes allow authors to provide multiple submit buttons and have the form handler take a different action depending on the submit button used.</p>
  56. <p>Some examples of <strong class=html>BUTTON</strong> follow:</p>
  57. <ul class=example>
  58.   <li><code class=html><BUTTON NAME=submit VALUE=modify ACCESSKEY=M>Modify information</BUTTON><br><BUTTON NAME=submit VALUE=continue ACCESSKEY=C>Continue with application</BUTTON></code></li>
  59.   <li><code class=html><BUTTON ACCESSKEY=S>Submit <IMG SRC="checkmark.gif" ALT="&#10004;"></BUTTON><br><BUTTON TYPE=reset ACCESSKEY=R>Reset <IMG SRC="x.gif" ALT="&#10008;"></BUTTON></code></li>
  60.   <li><code class=html><BUTTON TYPE=button ID=toggler ONCLICK="toggle()" ACCESSKEY=H>Hide <strong>non-strict</strong> attributes</BUTTON></code></li>
  61. </ul>
  62. <p>The <strong class=html>ACCESSKEY</strong> attribute, used throughout the preceding examples, specifies a single Unicode character as a shortcut key for pressing the button. <a href="../entities/index.html">Entities</a> (<abbr title="for example"><i lang=la>e.g.</i></abbr> <strong class=html>&eacute;</strong>) may be used as the <strong class=html>ACCESSKEY</strong> value.</p>
  63. <p>The boolean <strong class=html>DISABLED</strong> attribute makes the <strong class=html>BUTTON</strong> element unavailable. The user is unable to push the button, the button cannot receive focus, and the button is skipped when navigating the document by tabbing.</p>
  64. <p>The <strong class=html>TABINDEX</strong> attribute specifies a number between 0 and 32767 to indicate the tabbing order of the button. A <strong class=html>BUTTON</strong> element with <strong class=html>TABINDEX=0</strong> or no <strong class=html>TABINDEX</strong> attribute will be visited after any elements with a positive <strong class=html>TABINDEX</strong>. Among positive <strong class=html>TABINDEX</strong> values, the lower number receives focus first. In the case of a tie, the element appearing first in the <abbr class=initialism title="HyperText Markup Language">HTML</abbr> document takes precedence.</p>
  65. <p>The <strong class=html>BUTTON</strong> element also takes a number of attributes to specify client-side scripting actions for various events. In addition to the <a href="../attrs.html#events">core events</a> common to most elements, <strong class=html>BUTTON</strong> accepts the following event attributes:</p>
  66. <ul>
  67.   <li><strong class=html>ONFOCUS</strong>, when the element receives focus;</li>
  68.   <li><strong class=html>ONBLUR</strong>, when the element loses focus.</li>
  69. </ul>
  70. <h2>More Information</h2>
  71. <ul>
  72.   <li><a href="http://www.w3.org/TR/REC-html40/interact/forms.html#edef-BUTTON">BUTTON in <abbr class=initialism title="World Wide Web Consortium">W3C</abbr> HTMLá4.0 Recommendation</a></li>
  73. </ul>
  74. <div class=footer>
  75. <address>Maintained by <a href="http://www.htmlhelp.com/%7Eliam/">Liam Quinn</a> <<a href="mailto:liam@htmlhelp.com">liam@htmlhelp.com</a>></address>
  76. <p class=toolbar><a href="http://www.htmlhelp.com/"><img src="../wdglogo-small.gif" width=105 height=40 alt="Web Design Group ~"></a> <a href="../index.html" rel=Start>HTMLá4.0áReference</a>á~ <a href="../olist.html">ElementsábyáFunction</a>á~ <a href="../alist.html">ElementsáAlphabetically</a></p>
  77. <p class=copyright><a href="http://www.htmlhelp.com/copyright.html">Copyright ⌐</a> 1998 Liam Quinn. All rights reserved.</p>
  78. </div>
  79. </body>
  80. </html>
  81.