Disclaimer: I came to Programmers.SE to ask this question because I understand this is the place to ask this type of question, and not necessarily stackoverflow. If I am wrong, please close the question and direct me to a place where I may be able to discuss it.
href attribute of an HTML anchor tag. So then this function call:
is discouraged, and over this it is preferred instead to attach an event handler to the onclick event of this anchor tag.
Take something like this:
It is abundantly obvious what I am trying to do. Is it really necessary to separate the logic from the view in this case? If you agree with me that we can let this one slide, then where do we draw the line?