Clickoutside event doen't work on iframe

It's a rich-text editor,there is a div show the content users typed in ,just like this: when i click a icon who's used to call the color panel´╝îthe panel will show.And i wish when i click outside the panel,it will be my code is: var color-panel=$('color-panel'), color-panel.on("clickoutside", function (e) {
var t = $(;
if ($.contains(color-panel[0], t[0]))
color-panel.hide(); } )

        it  works well when   i   click outside  the panel will disappear  except i click the iframe.when i click the ifame,nothing happens,the panel is still shown,       help......i  want to know the reason the ifame not  the dom element outside the panel? 


Category: javascript Time: 2016-07-28 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.234 (s). 12 q(s)