[dokuwiki] page id from javascript

Is there a way to access the page ID of the current page via javascript?
Snooped around on the DW site without luck and can't find any previous
mention in the list.
I know I can create a template and output it in the header, but I was hoping
there is a way without a special template...martin

Other related posts: