Javascript, to only run if the user is on IE10
<p>I am using a library that works perfectly on all browsers apart from IE10 where a button requires a double click instead of 1, so i want to create some JavaScript that will only run on IE10 that when a user clicks on this button to double click instead of a single, but how can i make it so it only runs in IE10.</p>

<p>EDIT :</p>

<p>this is the code that i am having issues with :</p>

<pre><code>&lt;p:fileUpload widgetVar="upload" id="upload" fileUploadListener="#{fileUploadController.handleFileUpload}"
                                  mode="advanced" 
                                  multiple="false" 
                                  update="messages Nav upload"
                                  label="Select File"
                                  sizeLimit="100000000" 
                                  allowTypes="/(\.|\/)(gif|jpe?g|png|doc|docx|txt|pdf|html)$/"
                                  auto="true"
                                  disabled="#{fileUploadController.uploadComplete}"
                                  /&gt; 
</code></pre>

<p>out of all the broswers tested, firefox, chrome, opera, safrai and I.E. 7 - 9 only I.E.10 has the isse where when you click upload it requires a double click</p>
