title: Why the youtube video is running in the background after clicking on close button of pop-up window in Google Chrome & Internet Explorer?
body: <p>I'm using PHP, jQuery, AJAX, etc. for my website. I'm showing a youtube video into a jQuery pop-up window. This pop-up window has close button at top right corner. When user clicks on this close button the pop-up window should get close and youtube video should get stop. This is working perfectly in Mozilla Firefox but not in Google Chrome and Internet Explorer. 
  In Google Chrome and Internet Explorer, the pop-up window gets closed after clicking on the close button but the video runs in the background. The voice of youtube video comes even after closing the pop-up window. I'm not understanding why this thing is happening. Can anyone help me in this regard? Thanks for spending some of your valuable time in understanding my issue. Waiting for your replies. For your reference I'm putting below the HTML and jQUery-AJAX code of the functionality. Take a look at it.</p>
  
  <p><strong>HTML Code:</strong></p>
  
  <pre><code>&lt;div class="parter-mid"&gt;
    &lt;a href="#" class="show_video_popup"&gt;&lt;img src="images_new/videoimage.jpg" border="0" alt="Our Website on television" width="243" /&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>jQuery-AJAX Code:</strong></p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
      $(".show_video_popup").click(function(e) {      
      e.preventDefault();
  
          var dialog_title      = "Our Website on Television";              
          var dialog_message    = "&lt;iframe width='560' height='315' src='//www.youtube.com/embed/hj-c_cDKj0g?autoplay=1' frameborder='0' allowfullscreen&gt;&lt;/iframe&gt;"; 
  
          var $dialog = $("&lt;div class='forget_pass'&gt;&lt;/div&gt;")
              .html(dialog_message)
              .dialog({
                  autoOpen: false,
                  modal:true,
                  title: dialog_title,
                  width: 590,
                  close:{
                  }
              });
          $dialog.dialog('open');             
   });
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>