i have this object in js file inside xul file:
var show={
showIt:function(){
alert("simple function");
}
};
this is the html file:
<html>
<body>
<div id="clickMe"></div>
//in addition i have also script on the page:
<script>
document.getElementById('clickMe').addEventListener('click',show.showIt,false);
</script>
</body>
</html>
I tried this thing but, with no success
can i make this action, work for me in some way?
Thanks,