I want that when clicking on the label the link passes to the iframe and loads
<a href="https://www.google.com">Cargar</a>
<iframe id="container" src=""></iframe>
I want that when clicking on the label the link passes to the iframe and loads
<a href="https://www.google.com">Cargar</a>
<iframe id="container" src=""></iframe>
I hope this helps you.
I can think of many ways to do it, but I'll leave you with a simple one, which is using JavaScript.
I only recommend that you read about X-Frame-Options, because there are some limitations with iframe.
You can read more here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
You can also solve it without javascript
You just have to give the iframe a "name" and put the name of the name inside the target of the link.
You can review more about this at:
https://www.w3schools.com/html/html_iframe.asp
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_iframe_target