","url":"https://sir.kr/boards/tip/12319","author":{"@type":"Person","name":"서로웹","url":"https://sir.kr/profile/1a36275d-f185-447f-bcf8-dfd12f148455"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"datePublished":"2015-12-23T10:54:06+09:00","dateModified":"2015-12-23T10:54:06+09:00"}

opener에 있는 각종 element의 정보가져오기

· 10년 전 · 321

window.popup 으로 새창에 띄운 파일에서 opener의 값을 access 하거나 뭔가 작업한 후 opener의 특정 element 의 내용을 변경해야 할 때 다음과 같이 접근할 수 있습니다.

 

 

<script type="text/javascript">

alert(window.opener.jQuery('#opener_element_id').val());

</script>

 

|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 341
10년 전 조회 339
10년 전 조회 814
10년 전 조회 298
10년 전 조회 318
10년 전 조회 226
10년 전 조회 767
10년 전 조회 365
10년 전 조회 340
10년 전 조회 411
10년 전 조회 417
10년 전 조회 454
10년 전 조회 322
10년 전 조회 221
10년 전 조회 313
10년 전 조회 256
10년 전 조회 273
10년 전 조회 238
10년 전 조회 292
10년 전 조회 295
10년 전 조회 338
10년 전 조회 251
10년 전 조회 265
10년 전 조회 442
10년 전 조회 286