javascript - how can i detect click in any frame on the page -


I have this function that hides a div when some click is done in the document. But it only works in my frame, it does not recognize document clicks on other pages on the webpage. I'm tired of $ (parent) .click ( but it does not work.) Is there any way?

  $ (function () {$ (document). Click (Function (e) {...})})    

guardian is a window object of the original frame.

  $ (window.parent Document (.)   

This will only work if the original document Yes, it is as a frame document on the same domain.

Comments