에서 window.open 사용하는 경우 shiftKey를 사용하여 브라우저를 방지 : 당신은 크롬이나 IE에 파란색 선을 클릭하면 http://jsfiddle.net/casaschi/qKD9q/자바 스크립트 :이 예에서
<div style="color:blue;" onclick="window.open('http://www.google.com/search?q=' + Math.random(), '_blank');">
click me while pressing the shift key and then while NOT pressing it
</div>
<br/>
does one window appear as popup and the other one as a new tab?
이 새 탭이 열립니다. 파란색 선을 Shift- 클릭하면 대신 팝업 창이 열립니다.
내 자바 스크립트 코드에서 새 창을 여는 방법 (예 : shiftKey를 누르는 사용자와 관계없이 항상 새 창)을 제어 할 수 있습니까?
감사합니다.