You can either embed some javascript in your code, or modify the header of the page in the html your code generates.
However, in both cases, don't. It loads the server and it's bad for the user experience. Ideally, you should only reload the part of the page you need using AJAX.There is probably a much better way to do what you need, but you'll need to tell us why you think you want a refresh to get help with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.