Thanks for the replies guys. What I'm referring to is a situation where I would have a function that would be used like:
Code:
onclick="myfunc(arg1, arg2, arg3, arg4)"
That's a very obtrusive way of doing your JavaScript though since the JavaScript to be completely unobtrusive needs to have nothing special added to the page to allow it to work at all since the ids and classes and parent/child/sibling relationships should already be more than adequate to be able to properly reference any part of the page without needing anything else.
This seems to be the way to go ultimately. I wasn't looking at it like that. However, this means addition of a bit more code than normal.
Bookmarks