How do you activate a link when the page loads using javascript?

I am trying to open a lightbox when the page loads, here is the link I am trying to activate.

```
<a href="#home_video" rel="facebox">Replay Intro</a>

```