자바스크립트 웹브라우저 호환문의

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
자바스크립트 웹브라우저 호환문의

QA

자바스크립트 웹브라우저 호환문의

본문

안녕하세요.

인터넷에서 팝업창으로 일부 영역만 보이게하는 소스를 찾아서 적용했는데

익스플로러에서만 작동이 되네요ㅠㅠ

크롬이나 파이어폭스등 타브라우저나 모바일에서는 안되서요..

도움 좀 부탁드립니다^^;

 

 

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function popup(){
var setSring = "<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>"+
"<script>"+
" function setXy() {"+
" var obj = document.getElementById('view'); "+
" obj.scrollTop = 230; "+
" obj.scrollLeft = 555; "+
" obj.style.width = 730; "+
" obj.style.height = 410; "+
" } "+
"<\/script>"+
"<body style='margin:0000'>"+
"<div id='view' style='width:1px; height:0px; overflow-x:hidden; overflow-y:hidden;'>"+
"<iframe src='"+url+"' style='width:1700px; height:1400px;' scrolling='no' onload='setXy();'></iframe>"+
"</div>"+
"</body>";
var MyWindow=window.open('','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=730,height=410,left=300,top=400');
MyWindow.document.write(setSring);
}
//-->
</SCRIPT>
</head>
<body>
<input type="button" value="병원" onclick="popup()">
</body>
</html>

 

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT