부모창에서 자식창으로 값넘기기
부모창
function sendToChild()
{
var sv1 = gItemCd;
var sv2 = gItemKnd;
var sv3 = gNatCd;
gWin.document.getElementById('srchItemCd').value = sv1;
gWin.document.getElementById('srchItemKnd').value = sv2;
gWin.document.getElementById('srchNatCd').value = sv3;
}
자식창
<input type="text" id="srchItemCd" name="srchItemCd" />
<input type="text" id="srchItemKnd" name="srchItemKnd" "/>
<input type="text" id="srchNatCd" name="srchNatCd" />
function sendToChild()
{
var sv1 = gItemCd;
var sv2 = gItemKnd;
var sv3 = gNatCd;
gWin.document.getElementById('srchItemCd').value = sv1;
gWin.document.getElementById('srchItemKnd').value = sv2;
gWin.document.getElementById('srchNatCd').value = sv3;
}
자식창
<input type="text" id="srchItemCd" name="srchItemCd" />
<input type="text" id="srchItemKnd" name="srchItemKnd" "/>
<input type="text" id="srchNatCd" name="srchNatCd" />
댓글
댓글 쓰기