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="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols="100,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="mainFrame" src="maps1.htm">
<frame name="extdoc" scrolling="NO" noresize
src="</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
Thanks
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="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset cols="100,*" frameborder="NO" border="0" framespacing="0" rows="*">
<frame name="mainFrame" src="maps1.htm">
<frame name="extdoc" scrolling="NO" noresize
src="</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
Thanks