Sorry if i sound stupid but is it possible to pass a JS variable into the
text value

e.g. var new ="somethign";
<a href="javascript:insertText(' var new ' ,'user_location');"...