title: How to open `tel:+48123` link client side without openning new window/tab in browser
body: <p>I need to deliver the same behaviour if I clicked <code>tel:+4842566</code> link by myself. The default telephony application should call the number nothing more.</p>
  
  <p>I managed that besides that new tab opens. I wrote:</p>
  
  <pre><code>function Call(){
      window.open("tel:+4842566",'_blank');     
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>function Call(){
      window.open("tel:+4842566");     
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>  function Call(){
          document.getElementById('mymailto').click();
      }
  
  
  &lt;a href="tel:+48123456" id="mymailto" style="display:none"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Results are the same. Computer calls the number but new tab is openned.</p>
  
  <p><strong>Question:</strong> Is it possible to invoke/open this link without new tab/window?</p>
  
  <p><strong>EDIT:</strong> Before I tried to run this client side I did it on server side but did not realise that when I deploy application it is not the client who will be calling:</p>
  
  <pre><code>public ActionResult Call(int id, string number) {
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
      string formattedNumber = "tel:+48" + formatPhoneNumber(number);
      System.Diagnostics.Debug.WriteLine("NUMBER " + formattedNumber);
      proc.StartInfo.FileName = formattedNumber;
      proc.Start();
      Person person = db.Persons.Find(id);
      return RedirectToAction("Edit", new Person { Id = id });
  }
  </code></pre>
  
  <p>but then I didn't get new tab, maybe it will help somehow.</p>
  
  <p><strong>EDIT 2:</strong>
  I don't simply look for href link cause launching <code>tel:</code> link is only one of 2 things that happen at the same time:</p>
  
  <pre><code>&lt;p&gt;@Html.ActionLink("Call Cell Phone", "Call", new { id = Model.Id, number = Model.CellNumber }, new { @class = "btn btn-default", onclick = "Call();" })&lt;/p&gt;
  </code></pre>
  
  <p>I go to the controller action and invoke <code>Call()</code> javascript method and JavaScript method is the only place that simple openning any link can be done.</p>