How to get Id of Inline Vf page without using controller?

2018-06-24 16:19:08

I Want to set height of my Vf Page in inline vf as it is not taking content's full height. Just to came to know that the id of the iframe of inline vf is the id of apex page it is referring.

vfPageId = [SELECT Id, Name FROM ApexPage WHERE Name = 'YOUR_VF_PAGE_NAME'].Id;

Though I can get the Id of page in my controller, but don't want to take this approach as I have to create controller specially for this purpose.

Is there is any other way around to get the Id of page

Thanks