Call a Javacript Function from a Button

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?
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 328 CenarioVR®
- 195 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products