2016. 9. 28. 17:49
JavaScript
자식창
var opnerFn = null;
window["test"]=function (a){
alert(a);
opnerFn=a;
}
function chageOpener(v){
opnerFn(v);
}
부모창
function openPopup(){
wp = window.open("test2.html","open1",width=30,height=30);
setTimeout(function(){
wp.window.test(tttt);
},1000);
}
function tttt(bb){
var aa = document.getElementById("aa");
aa.value=bb;
}
'JavaScript' 카테고리의 다른 글
array 및 자바스크립트 내장객체 메소드등 사용법 참조 (0) | 2020.02.03 |
---|---|
크로스 도메인시 자식창과 부모창에 메세지 전송 (0) | 2016.10.05 |
onload 이벤트 스크립트로 발생 시키는법 (0) | 2012.11.19 |
css 글자 두껍게 하고 테두리 넣기 (0) | 2012.10.01 |
WebWork 데모! (0) | 2012.07.24 |