잘못된 코딩1 -
<img src="open.gif" onclick="window.open(this.href, 'popupName', 'width=800, height=500, left=50, top=50, statusbar=0, scrollbars=1');
잘못된 코딩2 -
<a href="#" onclick="window.open(this.href, 'popupName', 'width=800, height=500, left=50, top=50, statusbar=0, scrollbars=1'); >팝업창 띄우기</a>
잘된 코딩 -
<a href="http://www.naver.com" target="_blank" onclick="window.open(this.href, 'popupName', 'width=800, height=500, left=50, top=50, statusbar=0, scrollbars=1'); return false;" onkeypress="this.onclick(); return false;">팝업창 띄우기<img src="open.gif"></a>팝업창 옵션
[HTML5] IE10이하 익스플로러를 위한 대비책 (0) | 2013.08.01 |
---|---|
html 유효성검사시 주소표시줄의 공백문자 처리 (0) | 2011.07.22 |
웹표준 코딩법 (0) | 2011.07.21 |
웹접근성 자바스크립트를 이용한 페이지 이동 (0) | 2011.07.06 |
웸표준 코딩수정 사항 - 기본 (0) | 2011.07.06 |
댓글 영역