views:

393

answers:

3

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

+3  A: 

I doubt it. It seems rather pointless to write a helper function for something as simple as location.reload(true); when it really isn't used very often.

David Dorward
+1  A: 
window.locaton.href = window.location.href
vooD
+7  A: 

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

window.location.reload();

or

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

should suffice.

Justin Niessner