I am refreshing my page using jQuery:
location.reload();
This is working great but I want to refresh the same page by passing a parameter t
Click these links to see these more flexible and robust solutions. They're answers to a similar question:
These allow you to programmatically set the parameter, and, unlike the other hacks suggested for this question, won't break for URLs that already have a parameter, or if something else isn't quite what you thought might happen.