네이버 로그인 클릭시 자식창에 나오면서 실질적으로 로그인시 부모창에 반영되는 방법
amkorhtml
6년 전
조회 4,036
저기 선배님들 ㅠ,ㅠ 제가 sns 로그인 구현하는데
네이버 로그인 버튼 클릭하게 되면
새로운 자식창이 나타나고 그걸 실질적으로 네이버 로그인 하게되면
부모창(iframe에 반영할려고합니다!!)에 반영하게 할려고 합니다 ㅠㅠ
초기 네이버 로그인창에
</p>
<p><a href="<a href="https://nid.naver.com/oauth2.0/authorize?response_type=token&client_id={clientId}&redirect_uri={url}"" target="_blank" rel="noopener noreferrer">https://nid.naver.com/oauth2.0/authorize?response_type=token&client_id={clientId}&redirect_uri={url}"</a> id="naver_id_login_anchor"
onclick="window.open(this.href, 'naverloginpop', 'titlebar=1, resizable=1, scrollbars=yes, width=600, height=550'); return false"
></p>
<p><img src="{네이버 이미지 URL}" border="0" width="300px" height="49px"></p>
<p></a></p>
<p> </p>
<p>
window.open 통해 새로운 창이 나타나면서 로그인 버튼 클릭하게되면
새로운 창에서 반영이 되네요 ㅠ,ㅠ
부모창인 iframe에 반영할수 있는 방법이 있을까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인