Can someone help me with creating a onclick event for IE window? Onload works but not onclick?
I'm using this in an ASP.NET page
I'm using this in an ASP.NET page
Code:
<script type="text/javascript"src="theCodeBelow.js"></script>
Code:
(function() {
window.attachEvent("onload", function(event)
{
alert('onload occured');
}, false);
window.attachevent("onclick", function(event)
{
alert('you clicked me');
}, false);
})();