| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
includeHTML - Loading HTML parts via HTML tag (pure js)
Supported protocols: http://, https://, file:///
Supported browsers: IE 9+, FF, Chrome (and may be other)
1.Insert includeHTML into head section in HTML file:
<script src="js/includeHTML.js"></script>2.Anywhere use includeHTML as HTML tag:
<div><include src="header.html"></include></div>1.Tag:
<div>
<include src="menu.html"></include>
</div>2.Async:
<script>
includeHTML('header.html', document.getElementById('header'));
includeHTML('menu.html', document.getElementById('mainMenu'));
</script>3.Sync:
<script>
includeHTML('header.html', document.getElementById('header'), function(){
includeHTML('menu.html', document.getElementById('mainMenu'));
});
</script>| Back | FazBrowse Home | New Git URL |