snipt

Ctrl+h for KB shortcuts
Sign up for Snipt!
Post public snipts for free. Private snipts just $5/mo.
#140670

JavaScript

Initiate Phone Call

<script>window.location.href='tel:9998887777';</script>
https://snipt.net/embed/49774867697d463695eec22b882871ca/
https://snipt.net/raw/49774867697d463695eec22b882871ca/
49774867697d463695eec22b882871ca
js
JavaScript
1
2015-08-29T01:30:09
True
False
Aug 18, 2015 at 11:43 AM
/api/public/snipt/140670/
initiate-phone-call
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="o">&lt;</span><span class="nx">script</span><span class="o">&gt;</span><span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">href</span><span class="o">=</span><span class="s1">&#39;tel:9998887777&#39;</span><span class="p">;</span><span class="o">&lt;</span><span class="err">/script&gt;</span> </span></pre></div> </td></tr></table>
"click to call", call, javascript
Copyrighted, illegal, or inappropriate content? Email nick@snipt.net.