equal
deleted
inserted
replaced
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
2 <html dir="ltr" xml:lang="fr" |
|
3 xmlns="http://www.w3.org/1999/xhtml" lang="fr"> |
|
4 |
|
5 <head> |
|
6 |
|
7 </head> |
|
8 |
|
9 <body> |
|
10 <script type="text/javascript" src="hook.js"></script> |
|
11 <script type="text/javascript"> |
|
12 Hook.register( |
|
13 'quit', |
|
14 function ( args ) { |
|
15 alert( 'Bye!' ); |
|
16 return true; |
|
17 } |
|
18 ); |
|
19 |
|
20 Hook.register( |
|
21 'test', |
|
22 function ( args ) { |
|
23 alert( 'ici!' ); |
|
24 return true; |
|
25 } |
|
26 ); |
|
27 |
|
28 Hook.call( 'quit', [ 'All Done' ] ); |
|
29 Hook.call( 'test', [ 'All Done' ] ); |
|
30 |
|
31 </script> |
|
32 |
|
33 |
|
34 </body> |
|
35 </html> |