I want to call colorbox using javascript rather than a href link?
anyone know how I can do this?
thanks.
The previous examples didn't work for me, but using the same idea, this does work:
<script>
function lightbox(){
$.colorbox({width:"80%", height:"80%", iframe:true, href:"/pagetoopen.html"});
}
</script>
<input type="button" value="open the box" onClick="lightbox()"/>