How can a javascript function produce links to another javascript function that will action when clicked ? link() writes the link but it is not active. Neither window.location = ""; as page refresh nor document.write() seem to help.
function function1()
{
var ss = "a";
var ii = 1;
var uu = "javascript:function2(" + ii + ")";
var vv = ss.link(uu);
ss = "b";
ii = 2;
uu = "javascript:function2(" + ii + ")";
vv += " " + ss.link(uu);
document.getElementById("myinput").value = vv; //writes text, not active links
}
function function1()
{
var ss = "a";
var ii = 1;
var uu = "javascript:function2(" + ii + ")";
var vv = ss.link(uu);
ss = "b";
ii = 2;
uu = "javascript:function2(" + ii + ")";
vv += " " + ss.link(uu);
document.getElementById("myinput").value = vv; //writes text, not active links
}