why should there be a pointer in the HTML document? all that matters is the JS code.
sounds like a good idea.
- (as said) easy to maintain (you only work in JS, not in a JS-HTML-mixture)
- you can apply the .js file to more than one HTML file (and thus, if you modify the JS, you modify it for each HTML)
- external files are cached in the browser, so you save bandwidth
the work-around would be either that JS creates (or enables/displays) the buttons as well, or that you have non-JS default actions (applies not to all buttons)