I’m attempting to add a ‘Tell A Friend’ link to a shopping cart, that would pop up a new window. The content of this new window is generated by the Perl script. Due to the way the cart functions, combined with the opening of the new window, the script is not able to grab the referring URL.
My thought here is to add the referring document’s URL as a query string using some JavaScript, and letting the script take things from there.
Here’s the code I’m using to pop the new window:
<SCRIPT LANGUAGE=JAVASCRIPT>
<!– Hide from older browsers
function refer()
}
window.open(“
}
// End Hiding –>
</SCRIPT>
Now the question is, how can I hack together a string that would tack the location.href value on the end of the url calling the cgi script? I’m sure this can be done, but my knowledge of JavaScript is limited to copy & paste… LOL
Any help would be GREATLY appreciated…
Thanks!