팝업창에서 사용하는 스크립트는 다음과 같이 사용될 수 있습니다. ie에서는 잘 동작합니다만, 기타 브라우저에서는 그림의 떡입니다.
function apply(zip, addr) {
  parent.opener.registForm.user_zipcode.value = zip;
  parent.opener.registForm.user_address1.value = addr;
  self.close();
}


다음과 같이 수정된다면 다른 브라우저에서도 사용할 수 있습니다.
function apply(zip, addr) {
  opener.document.registForm.user_zipcode.value = zip;
  opener.document.registForm.user_address1.value = addr;
  self.close();
}

관련 : http://okjsp.tistory.com/tag/onlyie

"document.all" 은 ie 전용 스크립트입니다. 입력폼 파이어폭스에서 힘들게 다 입력했는데, 보낼 수 없는 상황에 맘이 무너져서 조사해봤습니다.

가능하다면 name과 같은 id 속성 주고 document.getElementById("id") 를 이용하면 모든 브라우저에서 다 사용가능한 스크립트가 될 텐데요.

+ Recent posts