There is the following site . I need to redirect to the thank you page after submitting the form. Do not know how. Tell me please.

function Formdata(data){ /* если не заполнено поле Ваше имя, длина менее 3-x*/ if(data.name != null && data.name.value.length == 0){ alert('поле "Имя" пустое'); return false; } if(data.name.value == data.name.title){ alert('поле "Имя" пустое'); return false; } if(data.phone != null && data.phone.value.length == 0){ alert('поле "Контактный телефон" пустое'); return false; } if(data.phone.value == data.phone.title){ alert('поле "Контактный телефон" пустое'); return false; } if(data.phone != null && data.phone.value.length < 5){ alert('поле "Контактный телефон" должно содержать минимум пять символов'); return false; } else { alert('Спасибо! Мы обязательно свяжемся с вами'); $(".popup").fadeOut(500); return window.location.href = "http://iphonestore.kz/thank.html"; } } 
  • Probably, you just have to: window.location. = ' Iphonestore.kz/thank.html Or what specifically you can not? - andreyqin
  • And so, and so I tried, just nothing happens after the appearance of the pop-up with the inscription with thanks. - Bkvalexey
  • Is your form a popup with a .popup class? To alert with "Thank you ..." comes? - andreyqin
  • Maybe you need to remove the return? If it does not help, show what is written in the console. - ModaL
  • @ModaL, I already offered the option without return. - andreyqin

0