Click here to Skip to main content
15,068,433 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to reload page by javascript with clear post variable.
i cant want post value that time.
plz give me that code ASAP.



Updated 9-Nov-11 23:21pm

1 solution

I'm not sure I understood the question correctly, but I'm guessing you want to reload the page with a GET request using javascript.. if so you can do something like this:


This should trigger a Http GET from your browser. I deliberately didn't use window.reload(); as I think it prompts you to resend your POST variables if you have any - like hitting F5 in your browser. for more info:[^]
Member 8068501 10-Nov-11 6:24am
i want, reload page without get or post request
jim lahey 10-Nov-11 9:35am
You can't. You need a GET or POST to load the page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900