1

I want to add any HTML document or snippets to another HTML page with JavaScript, like PHP ("include.php"), or masterpage to ASP.

  • Do I need a server?
  • Is it possible with JavaScript without local server?
3
  • You can checkout this link: stackoverflow.com/a/48759511/13638824 Commented Jun 1, 2020 at 1:24
  • Generally, it's best to have all of that HTML baked into the page ahead of time. It isn't necessary to do it on-request (as you normally do with PHP). You can use something like a Node.js script to compile your HTML ahead of time. Commented Jun 1, 2020 at 1:49
  • you can do that using iFrame or Object Commented Jun 1, 2020 at 2:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.