I am trying to trigger a JavaScript function by clicking on a DIV element, but for some reason it is not working as expected. I have gone through various examples provided by the helpful people here, but still can't figure out what I'm doing wrong. The cursor seems to be reacting fine, but the clicks are not having any effect. I would prefer not to use jQuery for this task. Below is the code snippet from my file:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>BUG</TITLE>
</HEAD>
<BODY>
<div onclick="alert("Clicked");" style="cursor: pointer">
<img src="test.jpg">
</div>
</BODY>
</HTML>