Skip to content

karamfd/include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Import HTML

A script for importing HTML files in HTML

How it works

  • include.js file must be inside the <head> element of all html files.
  • Requires a server to avoid getting a CORS policy error

Example

<!DOCTYPE html>
<html lang="en">
  <head>
    ...
    <script src="../include.js"></script>
  </head>
  <body>
    <include src="nav.html"></include>
  </body>
</html>

About

A script for importing HTML files in HTML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published