I need a javascript routine to allow a page that is called to return to whatever page called it, however the new page itself may have multiple pages to go to, so standard javascript window-history-back will not work. I need something like original-page="xxxxxx.htm" Oh yes the routines for both pages please the calling and the called.

Try window.referrer. That may be what you are looking for.

Thanks I will have a look at that

I think that "referrer" is a property of "document" object.

Oh yes. It is document. Sorry for the mistake. :( Was thinking something else while typing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.