Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:55

go back to previous page


Poster: Elaine Shuman
Dated: Thursday February 3 2005 - 0:28:05 GMT

When users are within the menu and want to go back to a previous page, they end up back at the home page, even if they were on another page within the site. Is there a way for users to go back to the previous page. Our users are frustrated by always having to start over at the home page. I saw a post in the version 3 section that said to use this code:

[code]<a href="javascript:history.back();">[/code]

But I don't know where to put it or if this will work.
thanks
Elaine


Poster: Ruth
Dated: Thursday February 3 2005 - 5:26:54 GMT

Try this:
Code:
aI("text=Back;url=javascript:history.go(-1);");
aI("text=Next;url=javascript:history.go(+1); ");


Ruth

Re: go back to previous page


Poster: kevin3442
Dated: Thursday February 3 2005 - 7:05:40 GMT

Hi Elaine,
Elaine Shuman wrote:
When users are within the menu and want to go back to a previous page, they end up back at the home page, even if they were on another page within the site. Is there a way for users to go back to the previous page....

I'm a little confused. Are you saying that the browser's "Back" button isn't working??? (That would be disturbing!) Or are you trying to implement your own "Back" button using the menus, and that isn't working?

Ruth's suggestion should work for a menu implementation of "Back". history.go(-1) is the equivalent to history.back(), and history.go(1) is the equivalent to history.forward(). So, you could also use
Code:
aI("text=Back;url=javascript:history.back();");
aI("text=Next;url=javascript:history.forward();");


Cheers,

Kevin