snipt

Ctrl+h for KB shortcuts

HTML

Open linked DIV link in New Window

<div id="myspace_link" onclick="window.open('<?php get_custom_field_value('Myspace_Link', true) ?>','newwindow');" style="cursor:pointer;" title="Click Here To Listen To This Band"></div>
https://snipt.net/embed/af15d69cdb99d96bae602e09270ea463/
/raw/af15d69cdb99d96bae602e09270ea463/
af15d69cdb99d96bae602e09270ea463
html
HTML
1
2019-08-23T07:37:58
True
False
False
/api/public/snipt/13223/
open-linked-div-link-in-new-window
<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></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">div</span> <span class="na">id</span><span class="o">=</span><span class="s">&quot;myspace_link&quot;</span> <span class="na">onclick</span><span class="o">=</span><span class="s">&quot;window.open(&#39;&lt;?php get_custom_field_value(&#39;Myspace_Link&#39;, true) ?&gt;&#39;,&#39;newwindow&#39;);&quot;</span> <span class="na">style</span><span class="o">=</span><span class="s">&quot;cursor:pointer;&quot;</span> <span class="na">title</span><span class="o">=</span><span class="s">&quot;Click Here To Listen To This Band&quot;</span><span class="p">&gt;&lt;/</span><span class="nt">div</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
_blank, div