/[suikacvs]/www/test/html/script/xmlevents/script-handler-1.xhtml
Suika

Contents of /www/test/html/script/xmlevents/script-handler-1.xhtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Oct 21 07:22:01 2006 UTC (18 years, 8 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
New

1 wakaba 1.1 <html xmlns="http://www.w3.org/1999/xhtml"
2     xmlns:ev="http://www.w3.org/2001/xml-events"
3     xml:lang="en">
4     <head>
5     <title>&lt;button ev:handler=""&gt; ~ handler</title>
6     </head>
7     <body>
8     <h1><code>&lt;button ev:handler=""&gt;</code> ~ <var>handler</var></h1>
9    
10     <p>Is a <code>&lt;script&gt;</code>
11     executed when an event is dispatched on <button id="button"
12     ev:handler="#handler" ev:event="click">an element
13     with <code>ev:event=""</code></button>?
14     <em id="invoked">not yet</em></p>
15    
16     <script type="text/javascript">
17     window.Loading = true;
18     </script>
19    
20     <script type="text/javascript" id="handler">
21     if (!window.Loading) {
22     document.getElementById ('invoked').textContent = 'PASS';
23     }
24     </script>
25    
26     <script type="text/javascript">
27     window.Loading = false;
28     </script>
29    
30     </body>
31     </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24