Hi Amr,
You will have to place this code in the onload event of the page or a place where you are sure that the element already exists in the DOM.
For e.g,
function load() {
$("#div").click(function() {
alert("You clicked the i5Chart");
//window.open('http://www.google.com', '_blank');
});
}
<BODY onload='load();'>
<div id="div"/>
</BODY>
Hope this helps!
Best Regards,
Ria