call php page under Javascript function

前端 未结 5 1958
别跟我提以往
别跟我提以往 2021-01-21 09:52

Is it Possible to call php page under Javascript function? I have an javascript function and I want to call php page if someone press okk

Here is my code so far

<
5条回答
  •  感情败类
    2021-01-21 10:19

    Place this where you want your redirect to happen:

    location.href = "newpage.php";
    

提交回复
热议问题