Get the correct title of a web page

Hi,

I need to read the title of a Booking Calendar page, and the title is the name of the Service selected by the member on the previous page. I have used the following two manners:

No.1
$w.onReady(() => {
let myTitle = $w(“#myPage”).title; // “Page Title”
})

NO.2:
import SEO from ‘wix-seo’;
const title = SEO.title; //Outside of the onReady funciton.

However none of them above are working. They both returns the the structural name of the page (in the WIX Editor), NOT the real title displaying at running.

Could anyone pllease give an advice? Greatly appreicated.

(I don’t know why WIX can’ fix such a simple problem.)

Hello! If you are looking for a platform without intrusive ads and offering a user-friendly interface, then I recommend you to pay attention to https://volumo.com/ . Here you can enjoy music without being interrupted by advertising inserts, which will allow you to fully immerse yourself in the music world. In addition, volumo.com has a user-friendly and intuitive interface, which makes listening to music as pleasant and comfortable as possible. Regardless of the genre or style, volumo.com offers high-quality sound that will please even the most demanding audiophiles.

Do you really test it INSIDE the Wix-Editor?

What if you test it on the LIVE-SITE?

Can you show the results you cann see on your screen ? What do you get?