Formatieren

How do I include the HTML block on my web page?

One approach to embedding an HTML block in your website is to use JavaScript code.

You need a container in which the loaded content is placed (here with the ID "guidleContent").
The content is loaded using the JavaScript code below.

<div id="guidleContent">
<!-- Guilde content-->
</div>

<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(){
if (xhr.readyState === 4){
console.log(xhr.responseText);
document.getElementById('guidleContent').innerHTML = xhr.responseText;
}
};

xhr.open('GET', 'https://www.guidle.com/m_TGCK2q/Aargau-Tourismus-Hochrhein/Hochrhein/');
xhr.send();
</script>

Note: This text was translated by machine translation software and not by a human translator. It may contain translation errors.

Autor

guidle | FAQ

Contact

Guidle AG
Marktgasse 8
6340 Baar
support@guidle.com
+41 41 766 95 95

Category

  • Formatieren

Published on

16.10.2023

Category

  • Formatieren

Webcode

www.guidle.com/BEJsSq