How can you do something like this:
myLink
And have the js
Just put the JS code directly in there:
fsljk
Though, you should not be doing inline scripting. You should unobtrusively attach event handlers.
fdsj