JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://raw.github.com/jackmoore/colorbox/master/colorbox/jquery.colorbox-min.js"></script>
<a href="http://fiddle.jshell.net/_display/">click me</a>

JavaScript

var $colorbox = $('#colorbox'),
    tid, $body, $ibody,
    find = function() {
        $ibody = $colorbox.find('iframe').contents().find('body');
        // also make sure that there are elements in the body
        return $ibody.children('*').length ? $ibody : [];
    };

$(document).bind('cbox_complete', function(e) {
    tid = setInterval(function() {
       $body = find();
        if($body.length) {
            clearInterval(tid);
            // do something with $body
            $body.html('Yo!');
        }
    },10);
});

$('a').colorbox({
    iframe: true,
    width:100,
    height:100
});