Call a Javacript Function from a Button

hillk1
hillk1 Community Member Posts: 8
I've added an External HTML Object with a type of Header Scripting. I put the function in the Custom HTML field like so: function goNext() {   blah blah blah}To call this javascript function from a button, I assumed that I would select OnClick -> GoTo -> Web Address -> javascript:goNext();On publish to HTML, when I click the button, I get a message that the page cannot be found. It appers to be attempting to open a page named goNext(); rather than calling the function.Any ideas?