[英]How to open in a new tab a link clicked in a PDF document that is in an iframe?
I use iframe to display PDF file in my Angular website like this <iframe src='./assets/privacy_policy.pdf'></iframe>
however if the user clicks on the links contained in the document they are opened in the iframe. I use iframe to display PDF file in my Angular website like this
<iframe src='./assets/privacy_policy.pdf'></iframe>
however if the user clicks on the links contained in the document they are opened in the iframe. Does anyone have any idea how to make them open in a new window or tab?有谁知道如何让它们在新的 window 或选项卡中打开? Probably I need something working like
target="_blank"
.可能我需要类似
target="_blank"
的东西。
I use iframe to display PDF file in my Angular website like this <iframe src='./assets/privacy_policy.pdf'></iframe>
however if the user clicks on the links contained in the document they are opened in the iframe. I use iframe to display PDF file in my Angular website like this
<iframe src='./assets/privacy_policy.pdf'></iframe>
however if the user clicks on the links contained in the document they are opened in the iframe. Does anyone have any idea how to make them open in a new window or tab?有谁知道如何让它们在新的 window 或选项卡中打开? Probably I need something working like
target="_blank"
.可能我需要类似
target="_blank"
的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.