0

Project: Static website

Required Task: To pass a post filename, eg. post1.html, from Doc1.html to Doc2.html, so the post1.html contents can be included in the Doc2.html page.

PART 1

Question: Is the following method the correct way to approach this?

Doc1.html

<p>
    <a href="post-page.html?xfilename=post1.html">Article Title</a>
</p>

PART 2

Question: How is the variable, xfilename passed to the statement below in?

Currently, I am trying this unsuccessfully.

Doc2.html

<section>
    <p w3-include-html=xfilename;></p> 
</section>
Mike M
  • 1

0 Answers0