Frames:Controlling another frame w/ history.go(-1)

J

Jenn

Hi,
I have a page that I am setting up at
http://www.extravaganzadesign.com/aw/frame.htm
I am using a frame on top for some navigation and the frame below for
content that will go to external sites. I want to be able to have
buttons in my first frame that function as "previous page" and "next
page" when applicable. I am trying to figure out the code to make this
work. Right now I have a function set up as:

<script type="text/javascript">
function goback()
{
window.parent.frames[1].history.go(-1);
}
</script>


And then my button I have set up as a null link with this code



<a href="#"= onClick="return goback()">

I am still obviously a JavaScript newbie (I am in my 4th week of my
JavaScript class) and would greatly appreciate any help.
Thanks
 
J

Jenn

I removed the word "return" from my function call. Now it works in IE
but not NS or Safari. Any ideas still are appreciated!
 
J

Jenn

Jenn,
Remove the "return" from your function call. Also, there is an extra =
sign before your onclick that shouldn't be there.
Best Regards,
Your Alter Ego
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top