Title: [Plugin: ThickBox] Closing a Modal Window?
Last modified: August 19, 2016

---

# [Plugin: ThickBox] Closing a Modal Window?

 *  [sparkweb](https://wordpress.org/support/users/sparkweb/)
 * (@sparkweb)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-thickbox-closing-a-modal-window/)
 * I’ve got a question and I can’t find the answer anywhere on the interwebs. Thickbox
   is working great for my popups. I’m using modal =true because I want to create
   my own close button. I also want to be able to close the modal window by click
   on the overlay (the gray background div). The close button works fine, but I 
   can’t get the overlay to accept any clicks. Here’s my code:
 *     ```
       $(".closebiopopup, #TB_overlay").bind("click", function(e) {
       tb_remove();
       return false;
       });
       ```
   
 * Any ideas about how to bind an event to the overlay?

The topic ‘[Plugin: ThickBox] Closing a Modal Window?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sparkweb](https://wordpress.org/support/users/sparkweb/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/plugin-thickbox-closing-a-modal-window/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
