title: Using the standard OBJECT tag, how can I display a java applet with automatic prompts to install Java and with fallback content?
body: <p>This is the code i'm currently using: (note - %s is replaced on the server side)</p>
  
  <pre><code>&lt;!--[if !IE]&gt;--&gt;
  &lt;object
          type="application/x-java-applet"
          width="300" height="300"
  &gt;
  &lt;!--&lt;![endif]--&gt;
  &lt;!--[if IE]&gt;
  &lt;object
          classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
          codebase="http://java.sun.com/update/1.6.0/jinstall-6u22-windows-i586.cab"
          type="application/x-java-applet"
          width="300" height="300"
  &gt;
  &lt;!--&gt;&lt;!-- &lt;![endif]--&gt;
          &lt;param name="codebase" value="/media/vnc/" &gt;
          &lt;param name="archive" value="TightVncViewer.jar" /&gt;
          &lt;param name="code" value="com.tightvnc.vncviewer.VncViewer" /&gt;
  
          &lt;param name="port" value="%s" /&gt;
          &lt;param name="Open New Window" value="yes" /&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>When Java is installed, this works perfectly in both IE and Firefox.
  When Java is not installed, IE and Firefox both correctly prompt for an autodownload of Java 1.6 from the codebase line. (IE via the activex url given firefox via the Plugin Finder Service)</p>
  
  <p>Now, suppose I want fallback content to be shown if the plugin isn't installed, say a simple message like "Get Java". From reading <a href="http://www.w3.org/TR/html5/the-iframe-element.html#the-object-element" rel="nofollow">the specs</a>, i'd assume this should not change the plugin finding prompt - that is, rendering the fallback should be seen as a failure to render the object tag. Thus, I should still get the plugin finder service prompting me to install Java. Instead, simply adding a single character to the innerHTML of the object element causes Firefox to no longer prompt. Test this by visiting <code>data:text/html,&lt;object type='application/x-java-applet'&gt;Java failed to load&lt;/object&gt;</code>.</p>
  
  <p>How can I keep firefox prompting to install Java while providing fallback content?</p>
  
  <p>URL to test Firefox's Java Plugin Finder Service: <code>data:text/html,&lt;object type='application/x-java-applet'/&gt;</code></p>