javscript1 [Javascript] Chrome 등 브라우저에서 해당 창 닫기 [Javascript] Chrome 등 브라우저에서 해당 창 닫기 결론부터 말하면 불가능하다. scripts may close only the windows that were opened by it 위와 같은 스크립트 에러가 발생하여 이것저것 시도해보았다. 아래는 내가 시도해봤던 js 함수이다. function fn_close() { window.open('','_self').close(); } function fn_close(){ window.open('', '_self', ''); window.close(); return false; } function fn_close(){ self.opener = self; window.close(); } 모두 자신 window를 닫기 위한 함수이고, 자기자신을 공.. 2022. 5. 26. 이전 1 다음