Click the blank space in jQuery to close the pop-up window. The jquery pop-up window appears.
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> click a blank space to close the pop-up window. </title>
<Meta http-equiv = "content-type" content = "text/html; charset = gb2312">
<Style type = "text/css">
. Pop {width: 200px; height: 130px; background: #080 ;}
</Style>
<Script type = "text/javascript" src = "/ajaxjs/jquery-1.6.2.min.js"> </script>
<Script type = "text/javascript">
$ (Function (){
$ (Document). bind ("click", function (e ){
Var target = require (e.tar get );
If (target. closest (". pop"). length = 0 ){
$ (". Pop"). hide ();
}
})
})
</Script>
</Head>
<Body>
<Div class = "pop"> </div>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
</Body>
</Html>