Is is possible to call a function after [removed] has loaded new URL?

后端 未结 4 1031
一整个雨季
一整个雨季 2020-12-04 02:03

I\'d like to be able to call a jquery function once window.location has completed loading a URL. Is this possible? I can\'t seem to find anything online about this.

<
4条回答
  •  感动是毒
    2020-12-04 02:44

    After a user logs in for the first time I need to load my index page to initialize everything but then need to forward them to another page for profile completion.

    use window.location to redirect the user to your index, adding a query parameter (something like window.location=index.php?firstLogin=true ) and on your index redirect (using javascipt http 300, header() or whatever you are using) to the profile page after it ends loading if the parameter is set

提交回复
热议问题