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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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>handler ~ &lt;button ev:handler=""&gt;</title>
6 </head>
7 <body>
8 <h1><var>handler</var> ~ <code>&lt;button ev:handler=""&gt;</code></h1>
9
10 <script type="text/javascript">
11 window.Loading = true;
12 </script>
13
14 <script type="text/javascript" id="handler">
15 if (!window.Loading) {
16 document.getElementById ('invoked').textContent = 'PASS';
17 }
18 </script>
19
20 <script type="text/javascript">
21 window.Loading = false;
22 </script>
23
24 <p>Is a <code>&lt;script&gt;</code>
25 executed when an event is dispatched on <button id="button"
26 ev:handler="#handler" ev:event="click">an element
27 with <code>ev:event=""</code></button>?
28 <em id="invoked">not yet</em></p>
29
30 </body>
31 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24