Jump to content

W3.JS and using w3-include-html

Recommended Posts

The JavaScript has to be run from the page it included in, by using callback https://www.w3schools.com/w3js/w3js_include.asp

For example

<div w3-include-html="Footer.html"></div>

            function dothis() {
                x = document.getElementById("test");
                if (x) {



<h1 id="test">Hello from footer</h1>


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...