Here we are going to see how to open a iframe by clicking text or link
<!DOCTYPE html>
<html>
<head>
<title>Iframe with target link</title>
</head>
<body>
<h2 style="color:blue"><i>The name should match the target of the link to open the iframe </i></h2>
<iframe width="400" height="200" src="http://www.dotnetfunda.com" name="iframe_a"></iframe>
<p><a href="http://www.indianconsumercomplaints.org" target="iframe_a">IndianConsumerComplaints</a></p>
</body>
</html>
In the above code we have given iframe with www.dotnetfunda.com and in the next line we have www.IndianConsumerComplaints.org with target as iframe_a with value IndianConsumerComplaints, which is used to change the website by triggering given link.