Is it possible to prototype on window or window.location?
<p>I want to write a query parsing method that would belong to the location class, but am not having any luck with </p>

<p><code>window.location.prototype</code></p>

<p>or</p>

<p><code>window.prototype</code></p>

<p>My goal is to do something along the lines of:</p>

<pre><code>window.location.prototype.parseQuery = function(key){
   //run a test on this.search to see if it contains key and return the val
}
</code></pre>

<p>Is window immutable? or am I just not referencing it correctly?</p>

<p>TIA</p>
