title: PDF hide Jquery Modal in IE
body: <p>I am displaying a PDF in an <code>&lt;iframe&gt;</code> using a jQuery modal popup on button click. This is works fine in all browsers except IE10, where the displayed PDF hides the modal dialog.</p>
  
  <p>Dropping IE10 support is not an option.</p>
  
  <p>I tried using z-index. In this <a href="http://jsfiddle.net/J6CWM/516/" rel="noreferrer">jsfiddle</a>, the modal is outside of the body but nothing works. I could hide the pdf on popup or change the position of it, but my client don't want that. Also I tried <code>var text = prompt("Alert", "textbox's intial text");</code> - old javascript, but client don't like that look. <strong>My TL don't want to use iframe in modal.</strong> Isn't anyway I can take pdf behind HTML?</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;body&gt;
      &lt;div id='ClickMe'&gt;Click here!&lt;/div&gt;
      &lt;br/&gt;
      &lt;div&gt;This is more than likely an Adobe issue where it thinks it should be in front all the time no matter what, however it is very annoying that you can't open a dialog over a PDF.  Click on the 'Click here!' text above to see this issue occur.  Interesting enough if you click the Discuss button in JSFiddle it does the same thing.&lt;/div&gt;
      &lt;br/&gt;
      &lt;iframe src="http://www.ccc.commnet.edu/faculty/sfreeman/cst%20250/jQueryNotes.pdf" style="width:100%; height:700px;" frameborder="1"&gt;&lt;/iframe&gt;  
  &lt;/body&gt;
  </code></pre>
  
  <p><strong>jQuery:</strong></p>
  
  <pre><code>var $Dialog_div;
  
  function fnOpenDialog() {
      var str = '&lt;div id="dialog" style="display: none;height:60%;" title="On Hold Reason" align="center"&gt;'+'&lt;br /&gt;'+'&lt;textarea id="messageTextBox" cols="32" rows="3" style="resize:none"&gt;&lt;/textarea&gt;'+'&lt;div class="row" align="center"&gt;'+'&lt;br /&gt;'+'&lt;/div&gt;'+'&lt;br /&gt;'+'&lt;/div&gt;';
  
       $Dialog_div = $(str).prependTo('body');
  //    $Dialog_div = $('&lt;div id=\'ThisDialog\'&gt;Hello&lt;/div&gt;').prependTo('body');
  
      $Dialog_div = $('#dialog').dialog({
          autoOpen: true,
          draggable: true,
          resizable: true,
          title: 'Dialog',
          modal: true,
          stack: true,
          height: ($(window).height() * 0.95),
          width: ($(window).width() * 0.9),
  
         buttons: {
           'Yes': function() {
               alert($('#messageTextBox').val());
                $Dialog_div.dialog('close');
            },
             'No': function(){
             alert('No');
                $Dialog_div.dialog('close');
         }
  
        }
  
      });
  
  }
  
  $('#ClickMe').click(fnOpenDialog);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/zpJ5b.png" alt="enter image description here"></p>
  
  <p>How can I prevent the PDF from covering the modal?  (I am using ASP.NET MVCC 5(C#))</p>