Answers for "import external html file in html"

10

how to include external file in html

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-2020
0

import html into html

<html> 
  <head> 
    <script src="jquery.js"></script> 
    <script> 
    $(function(){
      $("#includeContent").load("fileName.html"); 
    });
    </script> 
  </head> 

  <body> 
     <div id="includeContent"></div>
  </body> 
</html>
Posted by: Guest on February-24-2021

Code answers related to "import external html file in html"

Browse Popular Code Answers by Language