Author: | giilbert |
---|---|
Views Total: | 281 views |
Official Page: | Go to website |
Last Update: | December 4, 2020 |
License: | MIT |
Preview:

Description:
include.js is a super tiny JavaScript library for handling HTML includes using the XMLHttpRequest API.
The include.js JavaScript library allows you to include external HTML files into your webpages similar to the PHP include statement.
See Also:
- Include HTML From External File – alt-iframe
- Embeds HTML Into A Document Using Fetch API – html-include
- Load External Files Into Webpage Using AJAX – jQuery includeHTML.js
How to use it:
1. Import the include.js library into the HTML page.
<script src="./include.js"></script>
2. Include external pages into your current page.
<include onload>a.html</include> <include onload>b.html</include> <include onload>c.html</include>