- 전체
- HTML
- Web Design (웹디자인)
- XE 응용 개발
- wordpress plugin dev
- Javascript & JavaScript Application
- MEAN Stack : full stack javascript
- angular js & ionic framework
- bootstrap
- WebGL, Three.js and Babylon.js
- restful api design
- mobile web
- node.js 응용
- Cloud Service 응용
- 웹 어셈블리 개발 [WASM, WebAssembly]
- 마이크로서비스, MSA (microservice architecture)
- WebGL / WebGPU
- next.js 개발
- micro frontend (마이크로프론트앤드)
- 전자상거래/쇼핑몰
- 서버 클라우드 (aws, azure, google)
HTML [HTML] How to force link from iframe to be opened in the parent window : iframe에서 부모 창에서 열리도록 링크를 강제하는 방법
2024.08.22 01:56
[HTML] How to force link from iframe to be opened in the parent window :
iframe에서 부모 창에서 열리도록 링크를 강제하는 방법
[question]
I need to open the link in the same parent page, instead of open it in a new page.
note : The iframe and parent page are the same domain.
[answer]
I found the best solution was to use the base tag. Add the following to the head of the page in the iframe:
<base target="_parent">
This will load all links on the page in the parent window. If you want your links to load in a new window, use:
<base target="_blank">
옮긴이 주 : 헤더 태그 <head></head> 사이에 <base target="_parent"> 삽입
[Q] 새 페이지에서 여는 대신, 동일한 부모 페이지에서 링크를 열어야 합니다.
참고: 및 부모 페이지는 동일한 도메인iframe 입니다 .
[A] 저는 가장 좋은 해결책은 base 태그를 사용하는 것이라고 생각했습니다. iframe의 페이지 헤드에 다음을 추가합니다.
<base target="_parent">
이렇게 하면 페이지의 모든 링크가 부모 창에 로드됩니다. 링크를 새 창에 로드하려면 다음을 사용하세요.
<base target="_blank">
[출처] https://stackoverflow.com/questions/1037839/how-to-force-link-from-iframe-to-be-opened-in-the-parent-window
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 4 |
AWS Certified Solutions Architect - Associate 2018 후기
| 졸리운_곰 | 2018.10.31 | 661 |
| 3 |
AWS 자격증 준비하기
| 졸리운_곰 | 2018.10.31 | 994 |
| 2 |
AWS 자격증 (아키텍트) 준비요령
| 졸리운_곰 | 2018.10.31 | 777 |
| 1 |
AWS Certified Solutions Architect – Associate Exam 시험 후기
| 졸리운_곰 | 2018.10.31 | 819 |

