Triggering FancyBox from a DIV onclick();
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-03-18T00:07:00Z
Indexed on
2010/03/18
0:11 UTC
Read the original article
Hit count: 1174
Hello,
This question seems to be asked a lot, but I haven't seen an answer that works.
So I have a div that works like this:
<div onclick="location.href='http://www.abc123.com';" class="menuitem">
</div>
Now I need the link (specified in location.href) to open up in a fancybox iframe.
I would love to use an A element but this div holds other items so I don't think I can.
I am open to all suggestions... even using elements other than divs, or using a different jquery iframe lightbox.
Thanks
Tim Mohr
© Stack Overflow or respective owner