Inline: onclick="colorPicker(event)"
Injected: see script below...
<script>
var inputTags = document.getElementsByTagName('input');
for (var n=inputTags.length;n--;) {
if (inputTags[n].className && inputTags[n].className.indexOf('color') > -1) {
inputTags[n].onclick = function(e) {e = e || window.event; colorPicker(e)}
}
}
</script>