View previous topic :: View next topic |
Author |
Message |
Ness
Joined: 18 Oct 2006 Posts: 3
|
Posted: Wed Aug 15, 2012 3:16 am Post subject: The re-direct page opens in a new window |
|
|
The re-direct page opens in a new window in Chrome. How do I get it to open in the same window? |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Wed Aug 15, 2012 7:04 am Post subject: Reply |
|
|
What is the URL of the form? This is not the default behavior, so something is likely been altered in the code.
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
Ness
Joined: 18 Oct 2006 Posts: 3
|
Posted: Wed Aug 15, 2012 7:35 am Post subject: Re: Reply |
|
|
http://www.dieselelectricservices.co.za/competition2012.htm |
|
Back to top |
|
 |
mycontac Site Admin
Joined: 31 Dec 2003 Posts: 2860
|
Posted: Thu Aug 16, 2012 7:12 am Post subject: Reply |
|
|
Good Day,
The issue is that on line 98 of you web site, you have the following code:
Code: |
<base target="main"> |
This is something that is typically used on framed websites. It is essentially telling the form to submit to a new window since the target attribute within our form code is left to its default (as it typically should be). You can either get rid of this line in your code, or override it by adding a target attribute to the form tag.
You would change this:
Code: |
<form name="contactForm" id="contactForm" method="post" action="http://www.mycontactform.com/sendform/sendform.php" style="width: 80%; border: 4px ridge #0700bf; margin: 0; padding: 0; background-color: #e2e2e2;"> |
To this:
Code: |
<form name="contactForm" id="contactForm" method="post" action="http://www.mycontactform.com/sendform/sendform.php" target="_top" style="width: 80%; border: 4px ridge #0700bf; margin: 0; padding: 0; background-color: #e2e2e2;"> |
Nick Ladd
myContactForm.com |
|
Back to top |
|
 |
Ness
Joined: 18 Oct 2006 Posts: 3
|
Posted: Thu Aug 16, 2012 9:35 am Post subject: |
|
|
Thanks, I removed the base target=main and it is sorted. |
|
Back to top |
|
 |
|