I tried the following code. But it doesn't work properly. Only one file add/ include repetitively. How can I solve this? **I want to create a custom tag "" which can INCLUDE html file!!!! –
var createIncludeTag = document.createElement('include');
$(function(){
var includeFile = $('include').attr('href');
$("include").load(includeFile);
});
<include href="nav.html"></include>
<include href="main.html"></include>
<include href="footer.html"></include>
includetag.