Hi,
I want to be able to provide a single A HREF link on a web page to execute a perl logout script and also display a return URL page determined by the link (i.e. not by the perl logout script). I believe javascript is the way to do this as the perl script is a comon program and I cannot alter the code to display the return URL from there.
The link that works is:
<a href=”#” onClick=”javascript: OpenPopUp(‘/cgi-bin/logout.pl’); return false”>
But the return URL is determined in the logout.pl program (which I cannot change) and I want it to be different.
Is it simply a matter of adding the required return URL as follows:
<a href=”www.abc.com/page.html” onClick=”javascript: OpenPopUp(‘/cgi-bin/script.pl’); return false”>
Will that link execute the logout script as well as returning to the required page? Do I need to retain the return false statement?
Any help would be greatly appreciated as testing this out is quite difficult to determine if the perl logout script has been executed.
Many Thanks