yujiepan commited on
Commit
8d2f8cc
1 Parent(s): 3d882c9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -1
index.html CHANGED
@@ -28,7 +28,10 @@
28
  type="text/javascript">
29
  </script>
30
  <script>
31
- $("#content a[href^='http']").attr("target","_blank");
 
 
 
32
  </script>
33
  </body>
34
  </html>
 
28
  type="text/javascript">
29
  </script>
30
  <script>
31
+ var links = document.getElementsByTagName('a');
32
+ for (var i=0, len=links.length; i < len; i++) {
33
+ links[i].target = '_blank';
34
+ }
35
  </script>
36
  </body>
37
  </html>