title: Javascript/HTML: onClick image alert not working
body: <p>I've looked all over Stack Overflow and still can't find an answer I'm looking for. I'm very new to JavaScript (not new to Java). I'm trying to make a "page" on my website X out when the image X is clicked.</p>
  
  <pre><code>&lt;img name= "pageXSymbol" src="IMAGEURL"&gt;
  </code></pre>
  
  <p>And my JavaScript code for this is:</p>
  
  <pre><code>$("pageXSymbol").on("click", function() {
      alert("Are you sure you want to delete this page?"));
  });
  </code></pre>
  
  <p>I'm not trying to actually delete the "page" yet, I'm just trying to make the alert pop up when clicked. Nothing has been happening when I click the image.</p>