Restrict page refresh

hi all,
i am having a page in which upload and download buttons are present. so wen i click upload or down load button the values in that page are refreshing and becoming empty actually i get those values from the previous page. so i dont want the page to refresh. so is there any method to do that atleast in java script.
thank u.