A
admyc
Hello
I am trying to write some javascript that will open a new web-page in
a new window and then be able to determine if the web-page that has
been opened contains certain text.
I am opening the new window with:
newpage = window.open("http://www.somewebaddress.com/
index.html","newpage","width=400,height=200,left=400,top=300,resizable=1,status=1,scrollbars=1");
I am then trying to see if it contains certain text by using:
if(newpage.document.getElementsByTagName('body')[0].innerHTML = =
"text") alert("contains the text");
However this line seems to produce an error that says "Access denied".
Does anyone know why this is or another way of achieving my goal?
Thanks
AM
I am trying to write some javascript that will open a new web-page in
a new window and then be able to determine if the web-page that has
been opened contains certain text.
I am opening the new window with:
newpage = window.open("http://www.somewebaddress.com/
index.html","newpage","width=400,height=200,left=400,top=300,resizable=1,status=1,scrollbars=1");
I am then trying to see if it contains certain text by using:
if(newpage.document.getElementsByTagName('body')[0].innerHTML = =
"text") alert("contains the text");
However this line seems to produce an error that says "Access denied".
Does anyone know why this is or another way of achieving my goal?
Thanks
AM