-
[Firefox] Javascript의 window.open에서 object Window]가 나타날 때카테고리 없음 2013. 7. 26. 22:00
팝업창을 a 태그 등으로 설정하면 Firefox에서는 팝업 창 외에, [object Window]라고
표시된 새로운 탭이 열리는데, 이 문제를 해결하려면 스크립트 끝에 void (0); 을 추가합니다.
<a href="javascript:window.open('xxx.html','new','width=100,height=100');"> 테스트 </ a>
↓
<a href="javascript:window.open('xxx.html','new','width=100,height=100');void (0);">테스트</ a>