Skip to content
HTML Button with onclick Function Not Working
Profile icon
[deleted]

I was developing a button that changed the favicon for the website. The button calls the add function.

image

When I click the button, the console pops up this error:
Screenshot 2019-10-22 at 13.25.49

It is nothing wrong with the code of the function but maybe how I am formatting it. Could somebody help and show me how?

You are viewing a single comment. View All
Profile icon
mwilki7

Does an instance of the FaviconNotification object need to exist first?

Profile icon
[deleted]

@mwilki7
I don't think so. It says that the add function is not defined.