If you want to refer Id parameter. you can use {!$currentpage.parameters.id} or from controller you can apexpages.currentpage().getparameters.get('Id');
But if you want to reference the salesforce Id of the current VF page. you need to put an extra effort.
one way of doing it is to parse the pagename for apexpages.cureentpage().geturl() then you can use SOQL to query salesforce id
But if you want to reference the salesforce Id of the current VF page.
you need to put an extra effort.
one way of doing it is to parse the pagename for apexpages.cureentpage().geturl()
then you can use SOQL to query salesforce id
Let me know if you need more help
Regards
Abhilash Mishra