View Full Version : how to do back navigations within the frames when they belong to different domain????

07-23-2002, 01:06 PM

Thanx in advance for your pain to help me. Problem: I have two frames frame1 and frame2. frame1 contains only navigation links (back & next). In frame2, i will display some pages existing in the current domain and some links will be displayed over there(frame2). clicking the link will take you to some other domain. this all happens in frame2. when i click "back" button in the frame1, its showing "Access Denied" error and stays in the same page. what i should do now to take to the previous page in frame2.

i tried the combinations like:

main is nothing but frame name.

Thank you,


07-23-2002, 01:41 PM
Normally parent.frame_name.history.go(-1) would work. Can you show us your code?

07-23-2002, 03:56 PM
if the document in the frame is in a diferent domain..
you have no script acess to do anything inside the frame's DOM
(including it's history object)

the only thing you can do is set the location to a new page

frame.location = 'something'

but that means you need to know exactly the last page adress