I have a button:
Button A
When I click this button the first time, I want it to exe
var Foo = function(){ document.getElementById( "a" ).setAttribute( "onClick", "javascript: Boo();" ); } var Boo = function(){ alert("test"); }