Designer API
Control the Webflow Designer
page.getName()
Get the name of the page.
1page.getName(): Promise<string>
Promise<string>
string
A promise that resolves to the name of the page.
1// Get Current Page2const currentPage = await webflow.getCurrentPage() as Page34// Get page name5const pageName = await currentPage.getName()6console.log(pageName)
Try this example