javascript add rel facebox
<p>i want to enable facebox jquery using javascript.</p>

<p>here in normal html </p>

<pre><code>&lt;a href="stairs.jpg" rel="facebox"&gt;text&lt;/a&gt;
</code></pre>

<p>how do in javascript ?something like this?</p>

<pre><code>document.location.href="stairs.jpg";
document.location.rel="facebox";
</code></pre>
