ㅠㅠ 2시간째 해매고있네요
innerhtml쪽에다가 넣어줘야하는데
opener.document.getElementById(edit).InnerHtml = \"dddasdfasdfasdf\";
쪽에서 에러나고 다음구문이 실행되지 않는것같아요 ㅠㅠㅠㅠㅠ힝
힌트좀주실분없나요..ㅠㅠㅠㅠㅠㅠ
부모창
부모창 폼이름 form1
function NewPopUp()
{
url=\"ImageUpload.aspx\"
targerName=\"popup\"
window.open(url,targerName,\"height=300,width=300,status=yes,toolbar=no,local=no\");
}
<a =\"NewPopUp()\">testssssss</a>
<div id=\"edit\" runat=\"server\" contentEditable=\"true\" style=\"width: 788px; height: 400px; border-right: gainsboro 1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid; border-bottom: gainsboro 1px solid;\">
팝업창
< language=\"\" type=\"text/\">
function gg() {
opener.document.getElementById(edit).InnerHtml = \"dddasdfasdfasdf\"; ------------>이문장에서 에러나는것같음
self.close();
}
</>
글쎄... 이거 참고해 보든가?
http://koxo.com/lang/js/method/open_window.html