OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

I am not able to call a function in Javascript from browser [duplicate]

  • Thread starter Thread starter Sanket Wandale
  • Start date Start date
S

Sanket Wandale

Guest
Code Snippet

When I click on Write button nothing is happening. Also it is showing an error 'Cannot read properties of null (reading 'addEventListener')' in browser console.

I was expecting that after I click on 'Write' button on browser, the function in Javascript file will be called. First it will show a prompt with "Inside Function" after that it will print "Hello All" on console.

<p><a href="https://i.sstatic.net/E4ztyHzZ.jpg" rel="nofollow noreferrer">Code Snippet</a></p>
<p>When I click on Write button nothing is happening. Also it is showing an error 'Cannot read properties of null (reading 'addEventListener')' in browser console.</p>
<p>I was expecting that after I click on 'Write' button on browser, the function in Javascript file will be called. First it will show a prompt with "Inside Function" after that it will print "Hello All" on console.</p>
 
Top