Search code examples
javascriptprototypereload

Reload page using prototype


Is there a way to reload a page using prototype (or redirect to itself)?


Solution

  • You shouldn't need a Javascript Library for this. A simple:

    window.location.reload();
    

    or

    window.location.href = window.location.href;
    

    should suffice.