[Solved] onclick / anchor tag- javascript in HTML


Your question is not clear, I assume this might be helpful:

// Create anchor tag
const a = document.createElement('a');

// Add link
a.href="http://yourlink.com";

// Add Text
a.innerText="Custom Link";

// `dataRow` should be a HTML Element
dataRow.appendChild(a);

solved onclick / anchor tag- javascript in HTML