简体   繁体   中英

How can i redirect all page using ajax and php when a particular condition occur

I have a user login part in my website using php , jquery and ajax .I am not much familiar with ajax and jquery .

I want to redirect my whole page to another page when the user login is correct.

But now the problem is that only the user login part is redirecting to another page, other parts of the page remain unchanged.

Please help me to redirect my whole page when the user login is correct.

要将客户端重定向到使用JS的另一个页面,您可以使用:

window.location = '**url_to_redirect**';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM