I have several iframes in my page and then this:
$(document).click(function() {
                if (x) {
                    action();
                }
                else if(y) {
                    anotherAction();    
                };
So when I click anywhere in the page, I would like my page to perform a specific action. But since the iframe is there, I am actually clicking on the iframe and nothing happens. How can I get around this? Maybe setting the iframe as a background image or something along those lines?
 
    