When a user clicks on a link, I need to update a field in a database and then open the requested link in a new window. The update is no problem, but I don\'t know how to op
You can extract the href from the a tag:
window.open(document.getElementById('redirect').href);