0

我目前正在处理这个页面: http: //www.maschineuk.com/landing-page

当人们输入他们的姓名和电子邮件地址后,我希望他们被重定向到一个可以免费下载歌曲的页面......

目前它只是提出了一个警告框。

<script>
$('form').simpleContactForm(
{
senderEmail : "", // if you leave this field empty, the mailing address will be the email field of the form
url : "php/simpleContactForm.php", // path to the plugin php file
type: "POST",  
subject : "FREE DOWNLOAD - MASCHINE",    
clearAfterSend : true,              
errorClass : "error",                               
success : function() {
    alert('Sent Successfully!');
}   
});

如何更改成功功能以将它们引导到另一个页面?还是有其他方法可以做到这一点?

发现表单提交后会重定向如下代码:

window.location="http://www.exampleurl.com";

我可以做到这一点,以便只有当他们输入电子邮件时才能访问此页面?

我不希望人们在不先输入电子邮件的情况下下载歌曲...

提前致谢!!!

4

1 回答 1

1

添加一个window.location.href

success : function() {
    window.location.href = url;
}   
于 2013-06-21T02:12:53.473 回答