Menu
I’m a javascript novice but I found the code that will provide a javascript back button. However I don’t need to actually go back one page, I just need the url from the previous page> Here is what I have so far (which doesn’t work). As you see, I’m trying to get the previous url into a php variable.
$go_history = “”;
$go_history .= “<script LANGUAGE=’JavaScript’>showHistory(-1)</script>”;
echo ‘go history = ‘, $go_history;
Strangely, if I replace showHistory with goHistory that line acts just like a refresh and goes to the previous page. I’ve tried a few different variations also
Any help is greatly appreciated.