Jump to content

Submit Form and Re-direct to another page in Wix


Razzor

Recommended Posts

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>
onsubmit="submitted=true;">
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...