title: Is it possible to display an iframe in a javascript popup?
body: <p>Noob here... attempting to display an iframe inside of a javascript popup upon a user's exit. The iframe should be seen first (within the browser prompt) and should allow the user to submit their email address.</p>
  
  <p>I've had some success referencing <a href="http://kbeezie.com/cross-browser-exit-pop/" rel="nofollow">this idea</a>, but realized the iframe is only displayed after the user has elected to stay on the page. Here's what I'd  <em>like</em> to do with the code:</p>
  
  <pre><code>function PopIt() { 
      $("a#trigger").trigger('click');
      window.onbeforeunload = UnPopIt;
      return &lt;iframe src="http://moneymappress.com/pro/su/pop_signup2.html"&gt;Your Browser doesn't support iframes&lt;/iframe&gt;; 
  }
  </code></pre>
  
  <p>After reading up on some of the security issues with iframes and javascript it appears this could be an issue, but I wanted to get a second opinion. I'm, also aware the code wouldn't work as is, but figured it was the easiest way to communicate</p>
  
  <p>If it's the case that an iframe can't be displayed with, what would the next best option be? </p>
  
  <p>Thanks for your help!</p>