window.open("http://localhost:8080/index.html"); window.open('','_parent',''); window.opener = window; window.close();