find a solution to my current js code

Job ID: 34627024

Budget: $10 – $11 USD

I need someone to find a solution to my current href code redirect located in .js file: <a href="' + e.autologin_url + '" class="ll kk jj" target="_blank">

Here is the full code:

document.getElementById("actions_confirm").innerHTML = '<style>#hm, #namecover, #lastnamecover {display: none}</style><h1 class="s1 ss"><b>' + c_1 + '</b></h1><h1 class="s1 ss">' + c_2 + " " + e.email + '</h1><div class="s3 ss"><a href="' + e.autologin_url + '" class="ll kk jj" target="_blank">' + c_4 + "</a></div>")

I need to modify the code inside "<a href". After a click, I need that it would redirect the current domain to another and open an e.autologin_url URL in a new tab. Here is a code example with window.open function, but it is not working with my code, I think because innerHTML doesn't support javascript:

<a href="https://www.domain.com" onclick="window.open("' + e.autologin_url + '") class="ll kk jj">