Why can’t I have a function named "write" at global scope invoked from an event attribute?
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.
Privacy & Cookie Consent
We use cookies to ensure the best experience on our website. This includes analytics, personalization, and marketing purposes. Some cookies are essential for the website to function properly.
By clicking "Accept", you consent to our use of cookies. You can read more about how we use cookies and how you can change your preferences in our Privacy Policy.