Make default homepage for IE9 javascript
<p>I am trying to make a default homepage script using the famous script for IE but I'm trying to add it in a jquery function.</p>

<p>So this works:</p>

<pre><code>&lt;a href="#" onClick="document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://www.google.com');"&gt;
    Click here to make My Site your default homepage
  &lt;/a&gt;
</code></pre>

<p>but this doesn't:</p>

<pre><code>&lt;a href="#" onClick=""&gt;
    Click here to make My Site your default homepage
  &lt;/a&gt;

$('a').click(function() {

 document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://www.google.com');

});
</code></pre>

<p>What I'm I doing wrong?</p>

<p>EDIT: <strong>Please note the on click function doesnt work for IE9.</strong> IE6,7 and 8 it works.</p>
