title: Disabling and enabling onclick?
body: <pre><code>&lt;p id = "a" onclick = "doStuff()"&gt;Textextextext&lt;/p&gt;
  &lt;p onclick = "disable()"&gt;disable the first p&lt;/p&gt;
  &lt;p onclick = "enable()"&gt;enable the first p&lt;/p&gt;
  function disable() {
      document.getElementById("a").onclick = null;
  }
  function enable() {
      document.getElementById("a").onclick = //command?//
  }
  </code></pre>
  
  <p>I don't want this to BE a button, I just want to make a clickable paragraph that can become unclickable. What's the command to enable the onclick? I've already searched this question but can't find an answer, so I'm asking.</p>