Answers for "link in javascript"

7

javascript link in html

<script type="text/javascript" src="./der/pfad/zu/der/datei.js"></script>
Posted by: Guest on August-01-2020
11

link javascript to html

<script src="index.js"> </script>
Posted by: Guest on April-11-2020
-1

create a link javascript

<html>
  <head></head>
  <body>
    <script>
      var a = document.createElement('a');
      var linkText = document.createTextNode("my title text");
      a.appendChild(linkText);
      a.title = "my title text";
      a.href = "http://example.com";
      document.body.appendChild(a);
    </script>
  </body>
</html>
Posted by: Guest on October-14-2020
0

html javascript link

// This is an awesome answer!
// This is how you link HTML to your JavaScript! -> Enjoy and Prosper!
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language