iframe -> parent
window.open -> opener
--------------
iframe 의 html 옵션
src - 경로
frameborder - 테두리 유무 - yes or no
bordercolor - 테두리 색
hspace / vspace
marginheight / marginwidth
scrolling - yes / no / auto
예제 :
<iframe src="<?=$concfg[path]?>/reg_list.php" frameborder="0" hspace="0" vspace="0" marginheight="0" marginwidth="0" scrolling="no" id="registconfirmbox" width="100%" height="0px"></iframe>
-> 반드시 frameborder = "0"으로 해야한다. 0px 로 하면 ff에서 제대로 값이 안 먹다.
자바스크립트로 iframe height 값을 바꿀려면
parent.window.document.getElementById("registbox").height = contentsHeight;
호출 하는 방법을 잘 살펴보자. 안그럼 ff 에서 반응이 없다.
'js' 카테고리의 다른 글
window.open 변수값들 (0) | 2009.02.27 |
---|---|
javascript onkeypress onkeydown onkeyup 의 차이 (0) | 2008.10.07 |
window.open의 scrollbars 옵션 (0) | 2008.08.18 |
javascript로 css 조작하기 (0) | 2008.07.23 |
typeof & instanceof (0) | 2008.07.18 |