I create a multiply cheating system like facebook. If click on a uesrname in index.php page, this userID sent to Iframe page inside new chat box. At this moment a setInterval inside Iframe start to collect data to show.
So, I want to clear setInterval inside iframe, if I close particular chat box.
Have any way to detect if Iframe page is close to clear setInterval automatically. Or any others way to send userID to iframe page to clear setInterval.