When clicking on a hyperlink jquery should work and the page should not navigate - jquery
<p>I am displaying a text for example let us consider the text as "SOF".</p>

<p>When i clicking on the "SOF" text i show that specific site in my site with in a iframe.    </p>

<p>This case is working fine... </p>

<p><strong>But my problem is when i click on the "SOF" text iframe is loading as well as the page is also totally navigating to the same page. This should not happen. I given my code here. What is the way to prevent from redirecting the whole site.</strong></p>

<p><strong>EDIT :</strong> </p>

<p><strong>This URL is working fine : <a href="http://www.oercommons.org/browse/collection/free-ed-gov" rel="nofollow">http://www.oercommons.org/browse/collection/free-ed-gov</a></strong></p>

<p><strong>This URL is not working : <a href="http://www.merlot.org/merlot/viewMaterial.htm?id=79516" rel="nofollow">http://www.merlot.org/merlot/viewMaterial.htm?id=79516</a></strong></p>

<p><strong>What may be the issue.. :-(</strong></p>

<p>Note : I know there is no need for jquery to displaying the site in an iframe. But in my case some times i will display html, pdf etc... So I am in need to use jquery. :-)</p>

<pre><code>var xhr = null;
    //by default set the element properties
    var preview_on = true;

    Drupal.behaviors.previewOverview = function(context) {
      //show preview on mouse over
      $('.links a').click(function(e) {
        e.preventDefault();
        if (xhr &amp;&amp; xhr.readyState != 4) {
          //if previous ajax is working then cancel it
          xhr.abort();
          //$('#right-sidebar-right').html('Preview Panel.');
        }
            if (preview_on) {
                curLink = this;
                targetLink = this.href;        
                data = '&lt;div&gt;&lt;a href='+ targetLink +' target="_blank"&gt;View Original Page&lt;/a&gt;&lt;/div&gt;' + '&lt;iframe src="' + targetLink + '" width="100%" height="500px"&gt;&lt;/iframe&gt;';
                // To display the data in selected area.
                $('#right-sidebar-right').html(data);
            }
        } else {
          $('#right-sidebar-right').html('Turn on preview mode to view.');
        }
    });
</code></pre>
