var testStr='World';
tUserBlock.setAttribute('onclick', 'javascript:alert("Hello" + testStr)');
This is probably a dumb question, but I'm trying to add a variable to .setAttribute onclick event, but I'm not quite sure what the correct syntax is to add the variable into the quote? The above alert doesn't show.