javascript function that refreshes a page code example Example: refresh window js window.location.reload();