[removed].reload not working for Firefox and Chrome

前端 未结 8 512
灰色年华
灰色年华 2020-12-08 15:44

I want to change the user status on click of a Button, so all I am doing is, detecting the current status and changing, if needed.

But in this case the changes the s

相关标签:
8条回答
  • 2020-12-08 16:32

    Here this is working to me with Fire Fox as well as Crome and its working fine with IE.

    object.reload(forcedReload);
    
    0 讨论(0)
  • 2020-12-08 16:35

    Key note from my perspective is that the location of the function for me had to be above the location in which the call originated. Thinking that browser interprets the javascript from top to bottom, if my code for reload was below the object that invokes it, it fails. If I put the code above it, window.location.href = window.location.href; worked.

    0 讨论(0)
提交回复
热议问题