HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3821<button> example.2009-09-13 08:34
@@ -39793,20 +39793,32 @@ You cannot complete this form until the field is correct.</samp></pre>
   title="dom-cva-validationMessage">validationMessage</code>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and <code
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>. The
   <code title="dom-lfe-labels">labels</code> attribute provides a list
   of the element's <code>label</code>s.</p>
 
   </div>
 
+  <div class="example">
+
+   <p>The following button is labeled "Show hint" and pops up a dialog
+   box when activated:</p>
+
+   <pre>&lt;button type=button
+        onclick="alert('This 15-20 minute piece was composed by George Gershwin.')">
+ Show hint
+&lt;/button></pre>
+
+  </div>
+
 
 
 
   <h4>The <dfn><code>select</code></dfn> element</h4>
 
   <dl class="element">
    <dt>Categories</dt>
    <dd><span>Flow content</span>.</dd>
    <dd><span>Phrasing content</span>.</dd>
    <dd><span>Interactive content</span>.</dd>

|