https://www.w3schools.com/jsref/met_win_stop.asp