I just wanted to ask if it is possible to take a string, which will always be constant and add a function's name to it. an example:
function modifyFunctionName(theFunc)
{
var newFunc = "link" +theFunc;
return newFunc;
}
//Somewhere in the HTML:
<input type='submit' value='button' onclick='modifyFunctionName(CheckLogin())'/>
So the modifyFunctionName will return linkCheckLogin().
EDIT: Sorry guys actually what I was exactly trying to do was this: https://gist.github.com/2371187
button, depended onCheckLogin()return value.