[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd-Back in different windows



This works, I have a back button which sits in a "ledge" frame, and I want
to back up my "display" frame (frame #2).  The html for this is BACK.HTML

BACK.HTML

<html>
<SCRIPT LANGUAGE="JavaScript">

function backframe2()
	{
	parent.frames[2].history.go(-2)
	}

document.writeln(backframe2())
</SCRIPT>
</html>

(Note, I use frames[2].history so that my "display frame" backs up one.  My
BACK button sits in another frame, so I have to specify which frame to
BackUp the href for.)
----------------------------------------------------------

Then simply link a BACK icon to it with

<A HREF="back.html" TARGET="display"> 
<img border=0 src="/icons/back.gif" align=top></A> 

Is this pretty clear?  Fwd works the same, use a positive number in te go().

Stew



>      i need it so when somebody clicks the "Back or Forword" buttons it will
>make a frame in a different window go back or forword.. is this possible? if
>so please be spacific cus i'm farly new to writing Javascript.
>
>     XOrC
>

--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/