Hi Jean-Paul,
  On 16 Jul 2016, at 15:58, Jan-Paul Kleijn
<email(a)biggee.nl> wrote:
 Hi good folks,
 Is there a way to save a page using javascript?
 I read the XWiki JavaScript API but could not find this functionality. 
You should check the XWiki REST API:
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI
I don’t think there’s any JS API that encapsulate this but I could be wrong.
Thanks
-Vincent
  Thanks in advance,
 Jan-Paul