You can call a function onclick and have the url there as a variable:
Click Here
And then you can do anything you want with the url:
function my_function()
{
var url = 'http://www.google.com';
window.open(url ,'MyWindow',width=600,height=300);
//show the url in an element
return false;
}