I would like to hear your feedback on the link below that lets users add a link to a website. I read that javascript:void(0)
is suggestedsuggested instead of a #
for the <a href=""
attribute. Is this still the best practice?
<a href="javascript:void(0)" onclick="window.open('https://www.example.com/add?url='+encodeURIComponent(window.location)+'&text='+encodeURIComponent(document.title))" title="Add link">Add Link</a>