Hello,
I am building a small apps which has to capture mouse click. I wrote the prototype in jquery.
Since it is a small apps focusing on speed, embedding jquery.js to use just one function would be an overkill.
I am not very experienced in pure javascript, would you show me some hints on writing pure javascript code to serve this function?
I see this example on JavascriptKit:
document.getElementById("alphanumeric").onkeypress=function(e){
//blah..blah..blah..
}
but it doesn't seem to work for
document.getElementsByTagName("x").onclick
Thank you!