Thanks for your time Barawal, I really appreciate your effeort to look into the code.
I just added ; at the end of the code because it is showing syntax error without it then saved it with no issue.
Unfortunately, the link is still not opening as a new window. 🙁