首页 > 解决方案 > 每次单击时都重新加载 iframe 链接?

问题描述

它将将此 routerLink 和 queryParams 传递给另一个组件中的 iframe,并且该 iframe 将加载另一个网站的主页。用户可以通过单击该主页内的按钮或链接进一步进入该 iframe。

当用户再次单击此链接并将 iframe 重新加载到主页时,有没有办法?

目前,如果用户已经在此 iframe 中,则此链接不可点击,无论是在 iframe 主页上还是在 iframe 主页内的其他子页面上。

<li data-toggle="collapse" class="nav-link1 pda">
<a class="nav-link"
routerLink="/financial-tool"
[queryParams]="application_data"
[routerLinkActive]="['active']">
<span class="pcoded-micon"><i class="fas fa-landmark"></i></span>
<span class="pcoded-mtext font-12">Applications</span>
</a>
</li>

基本上,我想通过单击此链接来刷新 iframe。如果有人能给我一些提示,我将不胜感激,谢谢。

标签: javascripthtmlangulariframe

解决方案


推荐阅读