IceHot, on 26 November 2012 - 12:51 PM, said:
why should there be a pointer in the HTML document? all that matters is the JS code.
IceHot, on 26 November 2012 - 12:51 PM, said:
sounds like a good idea.
IceHot, on 26 November 2012 - 12:51 PM, said:
- (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
- content-code-separation
IceHot, on 26 November 2012 - 12:51 PM, said:
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)

New Topic/Question
Reply



MultiQuote



|