I am interested in developing some javascript that resides as browser bookmark that can mine data from nested iframes and AJAX the data back to a remote server. A small collection such scripts would be used to coordinate player stats and attack strategy for a popular online game.
I am a novice javascript programmer and don't know if this is possible. My attempts thus far have failed, although I have authored other javascript code that works great in other applications.
Is it possible that I am violating the same-origin policy? Something is wrong. Code that should work gives me nothing.
Code such as this:
javascript:
y=document.getElementsByTagName('iframe')[2];
alert(y.src);
gives me the result one would expect, but when I try to access what I think should be the innerHTML
of the iframe, there is no result.
Any ideas?