This should be an easy one, but I can't come up with the answer. I have a page coded in HTML like so:
<HTML>
<HEAD>
<TITLE>My Database</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
self._domino_name = "_Welcome";
// -->
</SCRIPT>
</HEAD>
<FRAMESET ROWS="4*,96*">
<FRAME NORESIZE NAME="top" SRC="http://www.mydomain.com/mydb.nsf/TopPage?OpenPage" SCROLLING=no>
<FRAME NORESIZE NAME="bottom" SRC="http://www.mydomain.com/mydb.nsf/Page1?OpenPage" >
</FRAMESET>
</HTML>
The "TopPage" is a custom navigator function I've built in JavaScript, and when I click on a link to "Page2" in the top frame, "Page2" loads in the bottom frame. This works with no problems. However, what I want to do is dynamically generate a title for "FramePage" depending on what is loaded in the bottom frame. For example, when a user first loads this page, the title on the browser would read "My Database - Page1". When the user links to Page2, the title changes to "My Database - Page2".
I've tried doing this using the native development tool (Lotus Domino), but so far haven't been succesful. How would I go about writing a JS function for this? Any advice is appreciated.
Sam
<HTML>
<HEAD>
<TITLE>My Database</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
self._domino_name = "_Welcome";
// -->
</SCRIPT>
</HEAD>
<FRAMESET ROWS="4*,96*">
<FRAME NORESIZE NAME="top" SRC="http://www.mydomain.com/mydb.nsf/TopPage?OpenPage" SCROLLING=no>
<FRAME NORESIZE NAME="bottom" SRC="http://www.mydomain.com/mydb.nsf/Page1?OpenPage" >
</FRAMESET>
</HTML>
The "TopPage" is a custom navigator function I've built in JavaScript, and when I click on a link to "Page2" in the top frame, "Page2" loads in the bottom frame. This works with no problems. However, what I want to do is dynamically generate a title for "FramePage" depending on what is loaded in the bottom frame. For example, when a user first loads this page, the title on the browser would read "My Database - Page1". When the user links to Page2, the title changes to "My Database - Page2".
I've tried doing this using the native development tool (Lotus Domino), but so far haven't been succesful. How would I go about writing a JS function for this? Any advice is appreciated.
Sam
Comment