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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows and Frames and URLs

Status
Not open for further replies.

plotzer

Programmer
Aug 28, 2001
35
0
0
US
I've built a frameset that contains two frames. One frame is a local frame and the second is a link to page on another, external website. I am trying to execute a javascript function on the local frame that will give me the title of the remote page. I am unable to do this however.

The function called from the locale frame is as follows:

function get_hlink()
{

link1 = window.parent.extdoc.document.title;
alert(link1);
}




This works fine if it is a local webpage I am trying to read, but does not work when my frame includes an external page.

my frame page looks like this:

<html>
<head>
<title>MapBlaster</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
</head>
<frameset cols=&quot;100,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot; rows=&quot;*&quot;>
<frame name=&quot;mainFrame&quot; src=&quot;maps1.htm&quot;>
<frame name=&quot;extdoc&quot; scrolling=&quot;NO&quot; noresize
src=&quot;</frameset>
<noframes>
<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>
</body>
</noframes>
</html>


Thanks
 
you can't access the other page because its in a different domain then yours. its a security thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top