/
2.Hello World, Using JavaScript File Runner macro

2.Hello World, Using JavaScript File Runner macro

A. Create a new page 

B. Create a "sample.js" file with following content and drag it to new page to be added as an attachment

print("Hello World!");

C. You can remove the file as we don't need it in page body, after that add JavaScript File Runner macro

D. Add sample.js as JavaScript file, it should show up as you type the frst letters

E. Check the Print output and click on insert

F. Click on Update or Preview to see the result

Related content

1.Hello World, Using JavaScript Runner macro
1.Hello World, Using JavaScript Runner macro
More like this
Get Started
More like this
4.Add and activate credential
4.Add and activate credential
More like this
3.First dynamic page
3.First dynamic page
More like this
Confluence Dynamic Pages
Confluence Dynamic Pages
More like this