Javascript examples for DOM Event:onclick
Object in inline onclick event
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=( function() {/* w ww .j a v a2 s . com*/ ShowLookup = function (bah) { console.log(bah.id); } }); </script> </head> <body> <img id="xx" src="http://www.java2s.com/style/download.png" onclick="ShowLookup({"id": "22","name": "Robert Pitt"});"> </body> </html>