View Full Version : Returning from a html page to a php page.

12-02-2003, 08:06 AM
The site url is 'http://www.rafars.org/'.

The PhpDig search url is 'http://cgi.rafars.org/php/S/search.php'

The above search url will call up the search and display page.
In the top left is a logo, this logo has as it's url 'javascript:history.back();'.
This works and will take you back to the calling *.html page.

If you do a search and then select a page from the search results you are taken to that page.
At the bottom (and in the top bar menu) of that page is a 'back' button with the same 'javascript:history.back();', this does not return you to the phpdig search page.

Any ideas please.

12-02-2003, 08:21 AM
Hi. This is because the selected page opens in a new window and so there is nothing to go back to when the 'javascript:history.back(); link is clicked. You could remove the target="_blank" to get the selected page to dispaly in the same window as the search results.

12-04-2003, 04:23 AM
The answer is:- define('LINK_TARGET','_self'); //Target for result links

Why didn't I think of that!