title: click an <a href using javascript function
body: <p>I have this JS and HTML Code:</p>
  
  <pre><code>&lt;div id="EditPage" class="EditPagePopup"&gt;
      &lt;div class="EditPagePopupWrapper"&gt;
      &lt;iframe id="EditPageFrame" width="100%" height="75%" src=""&gt;&lt;/iframe&gt;
      &lt;div id="JQueryPopupRight"&gt;&lt;a id="JQueryRefreshIframe"&gt;&amp;#x21bb;&lt;/a&gt; &lt;a id="JQueryClose"&gt;&amp;#215;&lt;/a&gt;&lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  $(document).ready(function(){
      $("a#MiniPopupWindow").click(function (e) {
          e.preventDefault();
          //On click, open the page (&lt;a value&gt; value) in the above iframe/popup window
          $("#EditPageFrame").attr("src", $(this).attr("value"));
          $("a").removeClass("active");
          $(this).addClass("active");
  
          JQueryPopup('#EditPage');
      });
  
      $("a#JQueryRefreshIframe").click(function (e) {
          document.getElementById('EditPageFrame').contentWindow.location.reload(true);
      });
  });
  </code></pre>
  
  <p>then i have a href links like:</p>
  
  <pre><code>&lt;a id="MiniPopupWindow" value="http://www.google.co.uk/"&gt;test&lt;/a&gt;
  </code></pre>
  
  <p>this opens a popup div with an iframe in, and making the SRC of the iframe the value of the a href item</p>
  
  <p>I have a function on another page using javascript:</p>
  
  <pre><code>function VoIP_Portal() {
      window.location = "/voip_portal";
  }
  </code></pre>
  
  <p>how can i use a function to open the popup window with an SRC in the iframe?</p>