refresh and rerun javascript code example Example: refresh javascript location.reload(); Works like refresh button.