Thank you @kapil_rajoria I end up implementing a similar solution. I had to put my code inDOMContentLoaded event and use jQuery to check if Iframe exist before firing the code also I didn't use event.preventDefault(); to allow form to submit. Thank you for your support. document.addEventListener("D...