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 ~ <button ev:handler=""></title> |
6 |
</head> |
7 |
<body> |
8 |
<h1><var>handler</var> ~ <code><button ev:handler=""></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><script></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> |