반응형
부모창의 get 값등을 포함한 전체 경로를 알아서 새창을 닫고 부모창은 그 경로로 보내고
싶을때가 있다
var pathURL = window.opener.top.location.pathname ; //부모창의 URL
var pathValue = window.opener.top.location.search; // 부모창의 search 값
window.opener.top.location = pathURL + pathValue ; // 부모창을 그 위치에서 리플레쉬한다
var pathValue = window.opener.top.location.search; // 부모창의 search 값
window.opener.top.location = pathURL + pathValue ; // 부모창을 그 위치에서 리플레쉬한다
반응형
댓글을 달아 주세요
곤 2011.03.18 10:11 댓글주소 수정/삭제 댓글쓰기
퍼가요