Hi HTML gurus,
I need some help here. Please let me know if this is doable, and why.
I want to automate some process. Basically, I would write an HTML file to have two frames, the upper frame containing another HTML/JavaScript file that I wrote, and the bottom frame would load a page from a 3rd party website.
I was hoping that after the bottom frame got loaded, the javascript in the top frame would be able to examine the contents of the bottom frame, and do different things accordingly.
Code:
var x = window.top.bottomframe.document.body.innerHTML;
// bottomframe is the name of the bottom frame
// parse x to do whatever
but everytime I run the javascript, it gives me an error saying something about access violation. Is it because the contents of the bottom frame belongs to a different domain and therefore my own code won't be able to access it? Is there a way to get around it? thanks