Let's say that i have a webchat-application (external) loaded in my browser. As with all chats you'll get notifications on certain events like new message. The chat updates the DOM of the chat to reflect just that.
What i want to achieve is by searching this DOM for a particular occurrence (ie newmessage= 1) that i can use that information to trigger an alert (DOM-update) on a webpage i own.
I've seen examples of fetching/loading content/url with script but that would fetch a new instance of the page is my guess and that's not what i need.
In plain words. I have a web application that can show (in separate div) an iframe containing another chat that's not mine. People can switch views to my chat and the others. I want to receive a new message alert from the other chats when i'm viewing my own.
I hope it's somewhat clear what i'm asking. ;-)
I'm using PHP, Javascript/Jquery for my own chat.