Hi I submit a form with Ajax On successful insert, I used meta refresh in the <div> I displayed successful message to redirect user <meta http-equiv="refresh" content="0; url=index.php"> Code (markup): But it doesn't work I wanted to use javascript window.location, but I have to place it on head or show a button with "onclick" But I want the user to be redirected automatically and keep ajax submission of my form Any idea? Thanks
so why not pass this on the oncomplete / onsuccess / onreadystatechange event as you stated originally via window.location.href = newurl; ? i don't see how the success event needs to be in the head of the site...