자바스크립트로 div팝업띄우고 iframe속에서 내용추출하려하는데 잘안됩니다. 도와세요.

자바스크립트로 div팝업띄우고 iframe속에서 내용추출하려하는데 잘안됩니다. 도와세요.



<html>
<script language="javascript">
var oPopup = window.createPopup();
function top_estimate()
{
var oPopBody = oPopup.document.body;
oPopBody.innerHTML = "<div align='center'><iframe name='sitepriceEstimate' id='sitepriceEstimate' width='300' height='610' src='http://sitei.kr/html_file/top_estimate.html' frameborder='0'></iframe></div>";
oPopup.show(300, 50, 300, 610, document.body);
}
</script>
<body bgcolor="ccccff">
<a href="javascript:top_estimate()"><img src="http://sitei.kr/upload/2009/04/01/1238575625-96-0.jpg" border="0"></a>
</body>
</html>



결과값이 백지로 나오네요...

아이프램속에 있는걸 못읽어내는것 같은데 왜 그러는지 원인도 모르겠고......

전문가님들의 분석과 해결방안좀 부탁드립니다.

코드수정해서 올려주시면 더욱 감사드리겠습니다.
|

댓글 1개

할려는게 이건가요?

<html>
<script language="javascript">
function top_estimate()
{
var oPopup = window.open('', 'popup', 'width=330,height=630,toolbar=0,status=0,menubar=0');
var oPopBody = oPopup.document.body;
oPopBody.innerHTML = "<div align='center'><iframe name='sitepriceEstimate' id='sitepriceEstimate' width='330' height='630' src='http://sitei.kr/html_file/top_estimate.html' frameborder='0'></iframe></div>";
//oPopup.show(300, 50, 300, 610, document.body);
}
</script>
<body bgcolor="ccccff">
<a href="javascript:top_estimate()"><img src="http://sitei.kr/upload/2009/04/01/1238575625-96-0.jpg" border="0"></a>
</body>
</html>

createPopup 함수는 어디서 튀어나온겁니까?
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
16년 전 조회 977
16년 전 조회 896
16년 전 조회 1,061
16년 전 조회 1,523
16년 전 조회 1,371
16년 전 조회 806
16년 전 조회 1,002
16년 전 조회 1,283
16년 전 조회 951
16년 전 조회 3,463
16년 전 조회 950
16년 전 조회 954
16년 전 조회 803
16년 전 조회 1,513
16년 전 조회 962
16년 전 조회 816
16년 전 조회 946
16년 전 조회 1,364
16년 전 조회 1,566
16년 전 조회 1,546
🐛 버그신고