PDA

View Full Version : history.back in frames?


ChiZel_MunKee
12-12-2002, 09:25 PM
In one of the frames you can do a search for certain things. We'll call this one the SearchFrame. Once they submit the search the SearchFrame shows the results. In here you can click on a result and more data displays in a frame at the bottom. We'll call this the DataFrame. My problem is if they hit the back button, uses javascript:history.back(), in the SearchFrame it changes the DataFrame and if they hit it again it then changes the SearchFrame. Can I get it to only change the SearchFrame? Like, is there some way it only looks at the history of the SearchFrame? Thanks for any help.

beetle
12-12-2002, 09:49 PM
Try this

javascript:top.frames['SearchFrame'].history.back()

ChiZel_MunKee
12-12-2002, 09:58 PM
That still does the same thing, but thanks.