How to open an iframe by triggering link

Posted by Manideepgoud under HTML 5 category on | Points: 40 | Views : 1463
Here we are going to see how to open a iframe by clicking text or link
<!DOCTYPE html>
<title>Iframe with target link</title>
<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="" name="iframe_a"></iframe>
<p><a href="" target="iframe_a">IndianConsumerComplaints</a></p>

In the above code we have given iframe with and in the next line we have with target as iframe_a with value IndianConsumerComplaints, which is used to change the website by triggering given link.

Comments or Responses

Login to post response