Display title of page in a child frame in web browser tab
Our ColdFusion application is based on a page with all the menu options that calls the selected pages within a frame.
How can we display details of the page called in the browser tab : the standard <title> tag is not shown (as it is within a frame).
Ideally display the title, but the URL or any other unique identifying value will do.
Code extracts :
In the Frame called “main” we initially show the welcome page, and when the relevant menu button is clicked, the Java script function replaces the contents of the “main” frame with the new page.
<FRAMESET …>
<FRAME SRC="../menuContents.cfm" NAME="Contents" … >
<FRAME SRC="../welcome.cfm" NAME="main" …>
</FRAMESET><noframes></noframes>
<td><input name="image" type="image" onClick="power('xxx.cfm')" value="Nominal" src="../images/xxx.gif" …></td>
<script language="javascript">
function power(newPage){
parent.frames["main"].location = newPage; // instructs which frame to change...
}
