Razzor Posted September 19, 2014 Share Posted September 19, 2014 Hi, I'm new to HTML and was wondering if anyone can point me in the right direction I have a wix site and have created my own form a HTML widget The form works OK and uses Google docs to record the information and mail back to me the contents I am trying to get the form when the submit button is pressed to continue to do as before but then to open another page on my wix site The snippet of code below works OK when run in Chrome including the re-direct but fail to re-direct when in my wix widget. Any help greatly appreciated </head> <body dir="ltr" class="ss-base-body"><meta itemprop="name" content="Contact form"> <script type="text/javascript">var submitted=false;</script> <iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='http://google.co.uk';}"></iframe> <form action="https://docs.google.com/forms/d/1wBXOs4pWPLF9BKKZslPS4-VEQIaYDkaZNYLZTpZKKIg/formResponse" method="post" target="hidden_iframe" onsubmit="submitted=true;"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now