J
joealey2003
Hi...
The javascript "alert(top.main.document.title);" or
"alert(parent.main.document.title);" does NOT work when the frame
src="http://www.otherdomain.com". If src="mypage.html" it does work.
I checked and tried with lots of pages that has the <title> stuff like
www.google.com and it does not work.
Why? Any hint?
btw... here goes the html of the frames page...
//--------------------------------------------------------------------------//
<html>
<head>
<title>New page 1</title>
</head>
<frameset rows="64,*,64">
<frame name="upper" scrolling="no" src="upper.html" noresize
target="content">
<frameset cols="150,*">
<frame name="content" src="content.html">
<frame name="main" src="http://www.google.com">
</frameset>
<frame name="bottom" scrolling="no" noresize target="content">
<noframes>
<body>
<p>Your browser sucks! LOL!</p>
</body>
</noframes>
</frameset>
</html>
//------------------------------------------------------------------------------------------------------------------------------
The javascript "alert(top.main.document.title);" or
"alert(parent.main.document.title);" does NOT work when the frame
src="http://www.otherdomain.com". If src="mypage.html" it does work.
I checked and tried with lots of pages that has the <title> stuff like
www.google.com and it does not work.
Why? Any hint?
btw... here goes the html of the frames page...
//--------------------------------------------------------------------------//
<html>
<head>
<title>New page 1</title>
</head>
<frameset rows="64,*,64">
<frame name="upper" scrolling="no" src="upper.html" noresize
target="content">
<frameset cols="150,*">
<frame name="content" src="content.html">
<frame name="main" src="http://www.google.com">
</frameset>
<frame name="bottom" scrolling="no" noresize target="content">
<noframes>
<body>
<p>Your browser sucks! LOL!</p>
</body>
</noframes>
</frameset>
</html>
//------------------------------------------------------------------------------------------------------------------------------