Hi there,
The fact that you are sent to the home page is not caused by the JavaScript. The function runs fine, and doesn't do anything when you click Cancel.
However, you'll need to change the href attribute of the tag. Even when you return false from the onclick function, the browser will still redirect the user to the page that is added to the href attribute. Use a # instead to create a null / void link:
Code:
Response.Write "<a href='#'
onclick='getConfirm()'>Set XXXYYYZZZ to automatically launch upon
logging into CG</a>.<br>"
You should use the window.location from your JavaScript to send the user to the next page.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.