Hello, community. I found out that if I define Javascript functions in the header <head></head>, they can't be accessed in the body. What is the reason for that kind of behaviour??? Strange is also that it does work in preview but not in the saved page.
For embedding HTML and Javascript I use the HTML Macro of Confluence.
Best regards
Ewgenij