create a method to reload window using javascript code example Example: refresh window js window.location.reload();