On clicking on a link that is present inside an iframe. It should display a new page inside same iframe. How to implement this?

  iframe, laravel, php

I have implemented a cross-domain iframe using laravel framework.

The iframe contains a hyperlink, when clicked should redirect to a new page and that new view should be displayed in the same iframe. Also, the scripts added on that page should work.

I have already added the attribute "target=_parent". Also tried adding the following to the anchor tag.

sandbox="allow-top-navigation allow-scripts allow-forms"

Can somebody help me out here.

Source: Laravel

Leave a Reply