window reload on button click code example Example: reload pageon button click <button type="button" onClick="window.location.reload();">Close</button>