I have to HTML Forms one is visible and one is hidden and submit to the background. I use jquery script to submit the hidden form. I want to redirect my page to http://www.youtube.com/ after submitting the form in the background. Can you add code to my code on how to redirect?
Jquery Script
<script type="text/javascript">
$(function(){
$("#blast").click(function(){
if( $("#email").val() == "" ){
alert("Please enter email value");
} else {
// submit the form
$('#email1,#email2').val($('#email').val());
$('#form2,#form3').submit();
alert('Thanks');
return false;
}
});
$('#email').keypress(function(e){
if(e.which == 13){//Enter key pressed
$('#blast').click();//Trigger search button click event
}
});
});