What I'd like to do is have a check beside a link. If the box is checked, the user will be taken to page A. If unchecked (default) the user will be taken to page B.

Can javascript be used to do this?