javascript Mar 26, 2020 A line of code that closes the parent window in a child window window.opener.opener=null; This sentence must , Otherwise it will pop up a close prompt . window.opener.close();