반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- node.js
- MariaDB
- Tomcat
- yona
- spring3
- javascript
- FCM
- mysql
- Eclipse
- SpringBoot
- centos7
- jenkins
- Maven
- Next.js
- mybatis
- config
- MSsql
- Push
- docker
- Java
- rocky9
- ajax
- pwa
- NextJS
- jquery
- security
- nodejs
- popup
- PM2
- git
Archives
- Today
- Total
종이 한장 차이...
javascript 브라우저 구분하기 본문
728x90
반응형
SMALL
버튼 클릭시 특정 기능 동작전에 IE인지 Chrom인지 구분해서 처리 하기.
$('#printBtn').click(function (){
// if( navigator.userAgent.indexOf("MSIE") > 0 ){
// window.frames["iframe"].focus();
// window.frames["iframe"].print();
// //preview_print();
// } else if( navigator.userAgent.indexOf("Chrome") > 0){
window.frames["iframe"].focus();
window.frames["iframe"].print();
// }
});
728x90
반응형
LIST
'javascript' 카테고리의 다른 글
checkbox checked value control (0) | 2021.01.26 |
---|---|
jquery li each 사용 Attribute 참조하기. (0) | 2021.01.12 |
GET URL호출시 화면로딩 후 parameter 삭제 (0) | 2020.11.17 |
IE대응 자식 창에서 부모 창으로 Object(Data) 넘기기 (0) | 2020.03.12 |
현재 창종료, 새로고침, 페이지 이동시 자식창 종료하기 (0) | 2020.03.05 |
Comments