I have a url in my HTML as seen below. I have made the url inactive
<a style="pointer-events: none; color: rgb(44, 89, 159);" href="https://www.google.com/" id="successfactors">Link</a>
I am trying to reactivate the link via Javascript. I tried the code below, but when I did the page didn't load correctly. Does anyone know what I'm doing wrong or a better way to make a link inactive/active?
document.getElementById('successfactors').style.pointer-events = 'auto';
-is not valid in dot notation, use bracket notation:.style['pointer-events'] = '...'