0

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,

Roy
  • 251
  • 3
  • 10
  • Someone ??, somebody??? No one can not help me with the issue?!? – Roy May 16 '12 at 17:52
  • why did i get vote -1? what is wrong with my question? – Roy May 16 '12 at 21:20
  • Not sure Roy, I added +1 to balance it out. What happens when you enter show ⏎ in the JavaScript console ? Does it show you an object or that show is not defined ? – tomdemuyt May 24 '12 at 13:16

0 Answers0