79076473

Date: 2024-10-11 00:12:01
Score: 0.5
Natty:
Report link

Ok. I don't really know how specifc is your case.

If you want some link that opens an external site (of another origin) into a specific <iframe>, then you just need add the name attribute to your frame, then add the target attribute to the link anchor (<a>) with the name you defined your frame with.

Run the following snippet to see it working:

iframe
{
  border: 1px solid red;
}
<iframe name="myFrame"></iframe>
<div>
  <a href="https://www.stackoverflow.com/" target="myFrame">CLICK HERE</a>
</div>

PS.: I don't know why the frame is refusing to load the link though.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user2804429