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.
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.
As noted, you could use a target attribute, but it was technically deprecated in XHTML. That leaves you with using javascript, usually something like parent.window.location.
I have found simple solution
<iframe class="embedded-content" sandbox="allow-top-navigation"></iframe>
allow-top-navigation Allows the iframe to change parent.location. For more info https://javascript.info/cross-window-communication