title: Javascript - opening a link
body: <p>My Javascript isnt up to scratch, and im having problems making the link open in the same window rather than a new popup.</p>
  
  <p>In my html I have the following link</p>
  
  <pre><code>&lt;a href="javascript:go_registerParamList('&lt;%=appendStr%&gt;');"&gt;Open An Account&lt;/a&gt;
  </code></pre>
  
  <p>The Javascript for the 'go_registerParamList' is:</p>
  
  <pre><code>function go_registerParamList(paramList) {
      if (self.opener == null) {
          var base_window = self;
      } else {
          var base_window = self.opener;
      }
      if (paramList == '') {
          var link = 'https://${accountUrl}?action=go_register_popup&amp;area=SK&amp;button=openregbutton&amp;promo=new_regbutton_en&amp;crea=img&amp;bus_channel=SK';
      } else {
          var link = 'https://${accountUrl}?action=go_register_popup&amp;area=SK&amp;button=openregbutton&amp;promo=new_regbutton_en&amp;crea=img' + '&amp;' + paramList;
      }
  
      base_window.open(link, "pp_registration", "width=642, height=620, scrollbars=no,  menubar=no, status=no, scrollbars=no, resizable=yes,screenX=5, screenY=5, left=5, top=5");
  }
  </code></pre>
  
  <p>Thanks in advance.</p>