test.xhtml 534 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Test js_of_ocaml</title>
  </head>

  <body>
Activer la console javascript avec Ctrl-Shif-I -&gt; Console
    <div id="foo"> </div>
    <div id="tutu" style="background:black;" onclick="" > TOTO </div>
      <script type="text/javascript" src="main.js" > </script>
          <script type="text/javascript"  >
    var logevent= function(e) {
    console.log(e);
};
    var e = document.getElementById("tutu");
    e.onclick = logevent;
    
</script>

  </body>

</html>