SyntaxFix
Write A Post
Hire A Developer
Questions
You can extract the href from the a tag:
window.open(document.getElementById('redirect').href);