Include External HTML Into Your Pages – include.js

Category: Javascript , Loading | December 4, 2020
Views Total:298 views
Official Page:Go to website
Last Update:December 4, 2020


Include External HTML Into Your Pages – include.js


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:

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>

You Might Be Interested In:

Leave a Reply