How to redirect by using jquery?

后端 未结 4 773
囚心锁ツ
囚心锁ツ 2021-01-29 06:19

I have on log in page if user enters both user name and password same then i have to forward user to next page how is it possible.

how do i do this?

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 06:24

    It will be better if you can do this in the server side language itself. You will be validating the user credentials using a server side language and if that evaluates to success then you can redirect the page to a new one from there itself. No need to do this in javascript.

提交回复
热议问题