Why can’t I have a function named "write" at global scope invoked from an event attribute?
15:44 05 Dec 2016

my very simple html code, actually my javascript code is not working, here is my code:



  
    
  
  
    
hello

I want to change the

content to “hello world”, but when i try to do it, when I click the
element, its content is erased and it gives me a blank page. what am i doing wrong? any help would be appreciated.

javascript html dom