Programming for non-javascript users
<p>To ensure that my site is friendly to non-javascript users, I've built it without using JavaScript, and added it once the site was built.</p>

<p>So now I have a link as following:</p>

<pre><code>&lt;a href="http://example.com/panel" id="showPanel"&gt;Expand&lt;/a&gt;
</code></pre>

<p>But if JavaScript is enabled, I use the following code:</p>

<pre><code>$("#showPanel").attr("href", "#showPanel");
</code></pre>

<p>to make the link point to #showPanel instead of <a href="http://example.com/panel" rel="nofollow">http://example.com/panel</a></p>

<p>While this all works fine, I can't help but wonder if there's a better way to do this?</p>
