Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

HTML

Javascript: close window

1
2
3
<div onClick="javascript:window.close();">
    CLOSE WINDOW
</div>
https://snipt.net/embed/c6d7468a5cc402de6678671ca5f2b783/
https://snipt.net/raw/c6d7468a5cc402de6678671ca5f2b783/
c6d7468a5cc402de6678671ca5f2b783
html
HTML
4
2016-12-07T15:55:16
True
False
True
Oct 17, 2015 at 07:08 AM
/api/public/snipt/141762/
javascript-close-window
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">onClick</span><span class="o">=</span><span class="s">&quot;javascript:window.close();&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> CLOSE WINDOW </span><span id="L-3"><a name="L-3"></a><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
How, Javascript, a, close, in, to, windows
Copyrighted, illegal, or inappropriate content? Email [email protected].