@orpha
One way to include an external form without using an iframe is to use JavaScript to make an AJAX request to the form's URL and then insert the HTML content of the form into your webpage dynamically. Here's a basic example of how you can do this:
1
|
<div id="externalForm"></div> |
1 2 3 4 5 6 7 8 |
var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("externalForm").innerHTML = this.responseText; } }; xhttp.open("GET", "https://www.externalform.com/form.html", true); xhttp.send(); |
This code will fetch the HTML content of the external form and insert it into the DIV element with the ID "externalForm" on your webpage. This way, you can include the external form without using an iframe.