I have a simple test page with frames
<html><title>Ti tle A</title>
<frameset rows="50%,*">
<frame src="frame1.htm l" name="frame1" />
<frame src="frames.htm l" name="frame2" />
</frameset>
</html>
In frame1.html I want to get the parent's title and
change it
function changeTitle(new Title) {
var upperNode = document.parent Node;
var upperTitle = upperNode.title ;
alert(upperTitl e);
upperNode.title = newTitle;
}
The problem is 2nd line, error message says
upperNode has no properties.
But I check the DOM console in Firefox, it has properties, include the
title.
Please help how to change the Web browser's title?
Thank Q very much!
<html><title>Ti tle A</title>
<frameset rows="50%,*">
<frame src="frame1.htm l" name="frame1" />
<frame src="frames.htm l" name="frame2" />
</frameset>
</html>
In frame1.html I want to get the parent's title and
change it
function changeTitle(new Title) {
var upperNode = document.parent Node;
var upperTitle = upperNode.title ;
alert(upperTitl e);
upperNode.title = newTitle;
}
The problem is 2nd line, error message says
upperNode has no properties.
But I check the DOM console in Firefox, it has properties, include the
title.
Please help how to change the Web browser's title?
Thank Q very much!
Comment