1<html>
2 <head></head>
3 <body>
4 <script>
5 var a = document.createElement('a');
6 var linkText = document.createTextNode("my title text");
7 a.appendChild(linkText);
8 a.title = "my title text";
9 a.href = "http://example.com";
10 document.body.appendChild(a);
11 </script>
12 </body>
13</html>
14