1
모델 내에 iframe이 있습니다. iframe은 eg.xxx 웹 사이트를 엽니 다. xxx.com에서 나는 eg.xxx/yyy.html로 넘어갔습니다. 대화 상자를 닫을 때 xxx.com이 아닌 xxx/yyy.html이 계속 표시됩니다. 어떻게이 문제가 Javascript로 끝나나요? 모달 내 iframe의 src를 새로 고치는 방법
제 모달 코드 :
<!-- Start Feature Section -->
<div class="section-modal modal fade" id="magazine-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-content">
<div class="close-modal " data-dismiss="modal">
<a href="../twt/index.html" style="color: #000000; font-size: 30px;" data-toggle="modal">
<i class="fa fa-home"></i>
</a>
<!-- <div class="lr">
<div class="rl">
</div>
</div>-->
</div>
<div class="container ">
<div class="row">
<div class="section-title text-center">
</div>
</div>
<div class="row modal-body">
<iframe src="https://www.pvrcinemas.com/magazines" target="_self" style="position:fixed; top:65px; left:0px; bottom:0px; right:0px; width:100%; height:95%;color:#000000; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">
Your browser doesn't support iframes
</iframe>
</div>
</div>
</div>
</div>
<!-- End Feature Section -->
가 같은 날 도와주세요.
https://stackoverflow.com/questions/46289527/change-default-iframe-src-onclick-and-retain-src-after-page-refresh/46290093#46290093 상쾌한 SCR 특성에 부분적으로 유사한 자바 스크립트를 통해 이루어집니다. iframe에 id를 추가하면 해당 프레임을 훨씬 쉽게 타겟팅 할 수 있습니다. 포스트 링크는 또한 localstorage를 통해 수행 된 선택을 메모리에 유지합니다. 아마도 다음 질문입니까? –