var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index); window.parent.location.reload();//刷新父页面