Help needed to pass javascript result to serverside on page load
<p>I've got a Master page, which loads my Default.aspx</p>

<p>I need to get the browser version using </p>

<pre><code>function loadHiddenField() 
{       
    document.getElementById("HiddenField1").value =  document.documentMode;
}
</code></pre>

<p>The result of this needs to be passed to my Default.aspx page so that I can use it in a Linq query used to populate the page.  This all happens when my site first loads.</p>

<p>So: <br>
1) Type in my site URL <br>
2) Page loads, displaying the correct information in the default.aspx page depending on what browser version you are using.</p>

<p>I originally tried to call the method using the client side body onload, but I realise that this won't work.. So I need to know what does work.. </p>

<p>Please don't tell me to use HttpBrowserCapabilities, because that won't work.. What I have in the JavaScript above is what I need.</p>

<p>I'm stuck and really need help here..  I've asked this question previously, but the only person that tried to help deleted his post. </p>
