call function with id javascript

JavaScript
document.getElementById('go').onclick = myfunc;
Source

Also in JavaScript: