function copyConfluencePageIdToClipboard () {
var tmp = document.createElement('textarea');
tmp.value = AJS.Meta.get('page-id');
tmp.style = {position: 'absolute', left: '-9999px'};
tmp.setAttribute('readonly', '');
document.body.appendChild(tmp);
tmp.select();
document.execCommand('copy');
document.body.removeChild(tmp);
}
copyConfluencePageIdToClipboard ();