Inline location.href javascript
<p>I need to have an inline javascript link that looks like this without an onClick (for example)</p>

<pre><code>&lt;a href="javascript:location.href=('http://www.google.com')"&gt;Google&lt;/a&gt;
</code></pre>

<p>Is something like this possible? If so, how can I make it work?</p>

<p>The javascript must be inline harcoded like this, because my CMS does not allow me to do append "#example" at the end of URLs for anchors, for example, so I'd like to have an inline javascript so I can link this way, which the CMS allows this type of format believe it or not.</p>
