call php page under Javascript function

前端 未结 5 1959
别跟我提以往
别跟我提以往 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:11

    If you are looking for page direction:

    window.location="index.php";
    

    There are plenty other methods to redirect: http://grizzlyweb.com/webmaster/javascripts/redirection.asp

提交回复
热议问题