document.querySelector("#reg").innerHTML=`

Register your Interest

`; function submitReg(){ formData =new FormData(document.getElementById("regiform")); const options = { method: 'POST', body: formData }; fetch("https://test.armourhome.co.uk/overrides/interest.process", options); document.getElementById("regilayout").innerHTML='
Thank you for your interset
' } document.getElementById("regiform").addEventListener("submit", function nosubmit(event){ console.log("here") event.preventDefault(); return false } )