you can still use the javascript function to bind dynamic href
Send the value to the function:
function BindDynamicHref(URL){
window.location.href = "http://www."+URL;
}
And call the function like so:
onclick="BindDynamicHref('desiredwebiste.com');"
Hope this will resolve your issue.