Search code examples
javascriptphpback-buttonlaravel-5.3

Is there a way to refresh page without using jQuery?


I'm still looking for way to automate refresh in my page. But I'm confused on how to solve this problem without using jQuery and solving it using Laravel 5.3 functions. If someone knows how to solve this please help. It would be great. Thanks in advance.


Solution

  • this is JavaScript basics.

    Try this:

    <body onload="if (location.href.indexOf('reload')==-1) location.replace(location.href+'?reload');">