Reload page using prototype
Is there a way to reload a page using prototype 开发者_运维知识库(or redirect to itself)?
You shouldn't need a Javascript Library for this. A simple:
window.location.reload();
or
window.location.href = window.location.href;
should suffice.
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.
window.location.href = window.location.href;
精彩评论