how to open html link in iframe
This site provides users with the information about html open link in iframe, how to target html link in iframe, open html link in inline frame, tips, guide, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
Sometimes you want to open or target a link in html iframe. It is not difficult to set the link in html iframe. What you need to do first is to add the following in your link statement:
and then add the following to your iframe statement:
Now let's have a look at the whole code as follows:
<a href="link1.html" target="link">link 1</a>
<a href="link2.html" target="link">link 2</a>
<iframe name="link" width="388" height="220"></iframe>
When you click the "Link 1", you can see the contents of "link1.html" showing in the iframe and when you click the "Link 2", you can then see the contents of "link2.html" showing in the iframe.