title: How to create an iframe on clicking a link?
body: <p>I have a web page with several links inside a table. One of the links is inside a td tag . I want a way to invoke an iframe, which will be opened once the user clicks on the link. When the iframe pops up the rest of the page will become un responsive and once the user comes out  of the iframe the the outer page becomes responsive. The table td is something is like this :</p>
  
  <pre><code>&lt;td &gt;
  &lt;a href="configuration.xml related jsp action"&gt;Set the Iframe up&lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>The iframe will be populated by the contents of another jsp .</p>
  
  <p><strong>EDIT :</strong> I was in a hurry, so forgot to paste the code that i tried : So here it is :</p>
  
  <pre><code>&lt;td &gt;
  &lt;a href="#"&gt;Set the Iframe up&lt;/a&gt;
  &lt;div id="modalMan" style="display:none;"&gt;
  &lt;div class="modalsub" &gt;
  &lt;p class="close"&gt;&lt;a href="#"&gt;&lt;img src="cbutton.gif" alt="Close"/&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;iframe id="myFrame" style="display:none;" height="430" width="675" 
  src="myJSP.jsp" &gt;
  &lt;/iframe&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>This however is creating a problem as close icon is not coming and the part of the div i.e. </p>
  
  <pre><code>   &lt;div id ="modalman"&gt;
     &lt;p class&gt;
     &lt;iframe src&gt;
  </code></pre>
  
  <p>All remain hidden and an iframe opens with similar look, but the functionalities are all scrambled up, the javascript contents of myjsp remain hidden .</p>
  
  <p><strong>EDIT AGAIN :</strong> I am very sorry i forgot to mention that i have tried the onclick functionality, but since my href is like this so it goes and opens the jsp directly in a new browser tab instaed of opening it in an iframe.</p>
  
  <pre><code> &lt;a href="configuration.xml related jsp action"&gt;Set the Iframe up&lt;/a&gt;
  </code></pre>
  
  <p>How can i achieve this ? Kindly suggest a way .</p>