title: How to open links in an iframe with target=“_blank” in the same iframe?
body: <p>I want to Open links with target=“_blank” and  an iframe  in the same iframe. 
  I tried the code below, but it didn't work. Php solutions are welcome!</p>
  
  <pre><code>&lt;script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
  
  &lt;iframe src="http://www.htmlcodetutorial.com/linking/_A_TARGET_95y98y108y97y110y107y.html" height="100%" width="100%" &gt;&lt;/iframe&gt;
  
  &lt;script&gt;
  $('iframe a[target="_blank"]').live('click',function(e){
  e.preventDefault(); //stops it opening in a new window
  var url = $(this).attr('href');
  $('iframe').load(url);
  });
  
  &lt;/script&gt; 
  </code></pre>