javascript add rel facebox

Posted by ruru on Stack Overflow See other posts from Stack Overflow or by ruru
Published on 2010-04-21T15:24:22Z Indexed on 2010/04/21 15:33 UTC
Read the original article Hit count: 240

Filed under:

Hi all,i want to enable facebox jquery using javascript.

here in normal html

<a href="stairs.jpg" rel="facebox">text</a>

how do in javascript ?something like this?

document.location.href="stairs.jpg";
document.location.rel="facebox";

© Stack Overflow or respective owner

Related posts about JavaScript