Load form on external page using javascript


#1

Hello.

Essentially - my work place wants me to use unbounce for forms…
Now I am wanting to redirect the webpage once the form is filled. Using an iFrame means that it will reload inside the iFrame window.

So I thought maybe I could use javascript to implement the form into my html, eliminating the problem above.
Any help greatly appreciated

Thanks!


#2

I get this error

XMLHttpRequest cannot load http://www.solidfire.business/microsoft365-form-2/. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access.

When using this code

<div id="testLoad"></div>
<script>
   $("#testLoad").load("http://www.solidfire.business/microsoft365-form-2/");
</script>