I'm attempting to open a new window with a specific URL while also sharing the current page's address through an inline function. Here's what I have so far:
a href="javascript:void(0);" onClick='(function()
{
var link = string.concat("example.com/UserStatus.phpid=99244613&utm_source=",window.location.href);
console.log(link);
});return false;'>click here</a>
Unfortunately, nothing seems to be working as expected. Can anyone provide some assistance?