I have a variable ElementAction which is a string javascript:deleteRow();. How do I assign the literal content of ElementAction to an onclick handler of another HTML element. HTMLElement.onclick = ElementAction doesn't work.
Thanks for any help.
eval, however I absolutely don't recommend running a string.