hixie: <button> example. (whatwg r3821)

hixie: <button> example. (whatwg r3821)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2989&r2=1.2990&f=h
http://html5.org/tools/web-apps-tracker?from=3820&to=3821

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2989
retrieving revision 1.2990
diff -u -d -r1.2989 -r1.2990
--- Overview.html 13 Sep 2009 07:45:24 -0000 1.2989
+++ Overview.html 13 Sep 2009 08:29:19 -0000 1.2990
@@ -31695,6 +31695,16 @@
   <code title="dom-lfe-labels"><a href="#dom-lfe-labels">labels</a></code> attribute provides a list
   of the element's <code><a href="#the-label-element">label</a></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.')"&gt;
+ Show hint
+&lt;/button&gt;</pre>
+
   </div><h4 id="the-select-element"><span class="secno">4.10.6 </span>The <dfn><code>select</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#phrasing-content">Phrasing content</a>.</dd>

Received on Sunday, 13 September 2009 08:30:15 UTC