JSREF

HTML DOM Element hasAttribute()

Does "myButton" have an onclick attribute: