javascript addEventlistener “click” not working
问题 I am working on making a To-Do list as a Chrome new tab extension. My html file: <head> </head> <body> <h2 id="toc-final">To Do List</h2> <ul id="todoItems"></ul> <input type="text" id="todo" name="todo" placeholder="What do you need to do?" style="width: 200px;"> <button id="newitem" value="Add Todo Item">Add</button> <script type="text/javascript" src="indexdb.js"></script> </body> </html> Previously the button element was an input type with onClick(), but Chrome does not allow that. So I