Skip to content
Advertisement

Tag: object-expected

JavasScript function undefined

i’ve got an html element declared as so: and the javascript function switchViews is declared post-html as such: when I click on the html element, i get thrown a JS error saying “Object Exepcted”, and in the google chrome script debugger it says that switchViews is undefined. Why would it think that switchViews is undefined and how would I go

Advertisement