Home > Mobile >  Include another HTML file in a HTML file in the HEAD section of the document
Include another HTML file in a HTML file in the HEAD section of the document

Time:07-26

There are plenty of examples of how to included content from one html file in another, including this:

enter image description here

CodePudding user response:

Use $.get from jQuery to add data to head tag. After inital page render.

$.get('./lforms-examples/pages/header-footer/ComponentHeader.html', function(data) {
    $('head').append(data);
});

Read more about favicon https://mathiasbynens.be/notes/rel-shortcut-icon

  • Related