Answer the question
In order to leave comments, you need to log in
How to embed external HTML in a page?
Briefly:
There is a page , it needs to be inserted into another html page using JS. At the same time, the embedded page should not lose its styles and js scripts.
A little more:
I have a finished folded page from the previous program. This page must be embedded in CS CART (on one of the store pages on the CS CART platform). Previously, the implementation was as follows:
The following code was simply added to the required page
<head>
<link rel="import" href="путь_к_файлу/встраиваемая_страничка.html">
</head>
<script>
var link = document.querySelector('link[rel="import"]');
var content = link.import;
var el = content.querySelector('#fx-wrap');
document.body.appendChild(el.cloneNode(true));
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question