How can I add a "copy to clipboard button" to copy the output of the following scripts (browser checks)
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;title&gt;JavaScript Flash HTML Generator Library&lt;/title&gt;
&lt;script type="text/javascript" src="flash_detect.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="browser.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="pop.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt; 
    if(FlashDetect.installed){
        document.write("Your Flash Player Version is "+ FlashDetect.major +  " and your browser is " + BrowserDetect.browser + ' ' + BrowserDetect.version + ' ' + "your screen resolution is: " + screen.width + "x" + screen.height)
    }
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>'("Your Flash Player Version is "+ FlashDetect.major +  " and your browser is " + BrowserDetect.browser + ' ' + BrowserDetect.version + ' ' + "your screen resolution is: " + screen.width + "x" + screen.height)' The purpose of these are to detect browser capabilities. </p>
