title: Link with onclick event is not working after append
body: <p>I created a Facebook game that contains some XML code. </p>
  
  <p>In the game over screen, I want to add a Facebook share message that automatically captures the score from the game.</p>
  
  <p>I was able to get it to work with the following code just fine:</p>
  
  <pre><code>a(".gameover_bg").append('&lt;p&gt;Congrats!&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.facebook.com/sharer.php?s=100&amp;p[title]=THIS IS MY TITLE&amp;p[summary]=THIS IS YOUR SCORE: '+ u +'&amp;p[url]=http://www.MYURL.com&amp;&amp;p[images][0]=http://www.MYURL.com/img/IMAGEADDRESS" target="_blank"&gt;SHARE THIS NOW&lt;/a&gt;&lt;/p&gt;')
  </code></pre>
  
  <p>But I would like to add a javascript onclick event so that the link opens in a specific size window of 555 width and 315 height. When I change the code from above to the one below, it's no longer working for me. I think it has to do with the the quotes somewhere...  </p>
  
  <pre><code>a(".gameover_bg").append('&lt;p&gt;Congrats!&lt;/p&gt;&lt;p&gt;&lt;a class="share" onclick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=THIS IS MY TITLE&amp;p[summary]=THIS IS YOUR SCORE: '+ u +'&amp;p[url]=http://www.MYURL.com&amp;&amp;p[images][0]=http://www.MYURL.com/img/IMAGEADDRESS', 'newwindow', 'width=555, height=315'); return false;"&gt;SHARE THIS NOW&lt;/a&gt;&lt;/p&gt;')
  </code></pre>
  
  <p>I'm including an image that maybe will illustrate better how I'm writing this:
  <img src="https://i.stack.imgur.com/u77Fa.png" alt="code"></p>
  
  <p>Would appreciate any advice on how to make the second code above valid (just like the first one works).</p>
  
  <p>Thanks so much!</p>