Reload browser window after POST without prompting user to resend POST data

后端 未结 14 2066
盖世英雄少女心
盖世英雄少女心 2020-11-29 05:47

When a user visits my website there is a \"Login\" link on every page. Clicking this uses some JavaScript to show an overlay window where the user is prompted for their cred

14条回答
  •  野性不改
    2020-11-29 06:13

    This worked for me.

    window.location = window.location.pathname;

    Tested on

    • Chrome 44.0.2403
    • IE edge
    • Firefox 39.0

提交回复
热议问题