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 hide.so my code is: var color-panel=$('color-panel'), color-panel.on("clickoutside", function (e) {
var t = $(e.target);
if ($.contains(color-panel[0], t[0]))
return;
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 .please...is the ifame not  the dom element outside the panel? 

Replay

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

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

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