Closing a published window (HTML only - NO LMS)

What I thought was simple turns out not to work.


I though that a button with the Action: Exit Title/Close Window would do exactly that but it has no effect when the HTML is run.


Can someone tell me how to create a button that will close/exit a lesson, when published as html?


Alternatively, tell me how to insert javascript code directly from Lectora.


I can edit the contents of the html output but I would have to take this manual step every time I made a change to the lesson.


Thank you

Discussions have been disabled for this post