473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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

Jul 23 '05 #1
2 3111
I removed the word "return" from my function call. Now it works in IE
but not NS or Safari. Any ideas still are appreciated!

Jenn wrote:
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


Jul 23 '05 #2
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

Jenn wrote:
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


Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ian | last post by:
I'd appreciate some help on this one. We use a three-window frameset for online manuals. The "main" window contains our document. Since the documents have hyperlinks between them for related...
6
by: foldface | last post by:
Hi I think from looking into google newsgroups history that you can't do this, however can someone confirm that: Using IE6 Can you load a web page (say www.google.co.uk) Then move to a web...
1
by: Justin | last post by:
Hi, I have a simple frameset defined: ---------------- index.html ---------------- <FRAMESET COLS = "225,*"> <FRAME NAME = "a" SRC = "one.html"> <FRAME NAME = "b" SRC = "one.html">...
4
by: Ike | last post by:
Can someone show me how I can have: <a href="javascript:history.back()" name="Back" value="Back" style=width:40px;float:right;margin-left:0px class="button" >Back</a> but since this href...
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
0
by: =?Utf-8?B?bWtlbGx5NGNh?= | last post by:
I've spent quite some time searching for a way to prevent the browser from adding each of my postbacks to the History list, and have found several different methods to do that or something similar,...
4
by: Heinrich Wolf | last post by:
Hi all I have a history.back() problem with FF(2). IE works as expected, while FF does not. The multi frame website setup as a whole with a lot of frame content switching works flawlessly in...
1
TheServant
by: TheServant | last post by:
Hi guys, I would like to use frames for a page, but I want to stop ie from recording the frame site in the history. I am sure it is in the ie programming, but I was wondering is there is a way to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.