I have a use-case to add a dynamic anchor tag and make a click event after it. The code is working fine in all the browsers except safari.
var link = document