Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied

Status
Not open for further replies.

jonthequik

Programmer
Aug 6, 2000
40
US
I'm trying to write a script to capture the source code of a page in the second frame. The code:

<SCRIPT LANGUAGE=&quot;JScript&quot;>
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 &quot;Access Denied&quot;. 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top