I'm using jQuery colorbox and load HTML into an iframe. All is working okay. While the iframe loads, I wanted to display a message along the lines of "stand by the page is loading"
I tried using the callback interface....if I use the traditional example of sending an alert prior to the load/open event, it works okay. If I try to use document.write to display a message, I see the message but the iframe doesn't load.
            //Examples of how to assign the ColorBox event to elements
            $(".iframe").colorbox({
                                            iframe:true, width:"80%", height:"80%",
                                           onOpen:function(){document.write("fff"); }
                                });
What am I doing wrong?
 
     
    