Hello,
I have a page with two frames in it as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>title</title>
</head>
<frameset>
<frame name="banner" src="banner.aspx">
<frame name="main" src="main.aspx">
</frameset>
</html>
is there anyway i can access something inside 'main' from here? im trying to add a small script to every page that gets loaded into 'main'..
document.getElementsByName("main")[0] gives me a handle to 'main' but i cant get access to the page that's currently loaded in it..
i tried --> document.getElementsByName("main")[0].document.body but that's refering to the contents of THIS page with the two frames in it..
can anyone help?
shades
I have a page with two frames in it as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>title</title>
</head>
<frameset>
<frame name="banner" src="banner.aspx">
<frame name="main" src="main.aspx">
</frameset>
</html>
is there anyway i can access something inside 'main' from here? im trying to add a small script to every page that gets loaded into 'main'..
document.getElementsByName("main")[0] gives me a handle to 'main' but i cant get access to the page that's currently loaded in it..
i tried --> document.getElementsByName("main")[0].document.body but that's refering to the contents of THIS page with the two frames in it..
can anyone help?
shades