I am using send.php to which the form is transmitted and send to the specified mail address.
The code is here:
window.location = ".../index.html";
alert("Comment was submitted");
So the user gets alert than is redirected to homepage.
However I intend to get another result: first redirect the user to homepage and then get the alert window. changing the order of commands does not help. can someone help me with this issue?