Added onload to new window