Forum Moderators: open

Message Too Old, No Replies

iframe and reload

         

jmf314159

4:39 pm on May 4, 2005 (gmt 0)

10+ Year Member



I have a few related questions. Given:

 <div id="MenuSet">
<span id="m1" onclick=loadFrm("Frm0", "page1src.htm">Menu 1</span>
&nbsp;&nbsp;
<span id="m2" onclick=loadFrm("Frm0", "page2src.htm">Menu 2</span>
&nbsp;&nbsp;
<span id="m3" onclick=loadFrm("Frm0", "page3src.htm">Menu 3</span>
</div>

<div>
<iframe id="Frm0", src="page1src.htm" />
</div>

If, for example, I am viewing page2src.htm and click on 'reload', the browser reloads the main document and page2src.htm.

1. How can I, upon reload, determine which source is displayed in the frame?
2. How can I, upon reload, coerce the browser to load page1src.htm without seeing the other page loaded first?
3. How can I, from within page#src.htm, change pages and modify the text color of the related menu.

Thank you.

adni18

3:10 am on May 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could store a cookie that cycles through the values (1, 2, 3) and on each load, cycles the values and displays the source under the current value.