jonthequik
Programmer
I'm trying to write a script to capture the source code of a page in the second frame. The code:
<SCRIPT LANGUAGE="JScript">
function button() {
var rng = parent.frames[1].document.body.createTextRange( );
if (rng!=null) {
alert(rng.htmlText);
}
}
</SCRIPT>
It works when the page is on my server or harddrive, but when I test it using any page from another site, it returns "Access Denied". Is there a way to get this to work or to get the source code without having an ID tag? Jonathan Hannan
Computer Repair, Webdesign
HTML, CGI, PERL, JavaScript, XML
<SCRIPT LANGUAGE="JScript">
function button() {
var rng = parent.frames[1].document.body.createTextRange( );
if (rng!=null) {
alert(rng.htmlText);
}
}
</SCRIPT>
It works when the page is on my server or harddrive, but when I test it using any page from another site, it returns "Access Denied". Is there a way to get this to work or to get the source code without having an ID tag? Jonathan Hannan
Computer Repair, Webdesign
HTML, CGI, PERL, JavaScript, XML