how to transfer a url from page A to page B?

Thank you for your answer
I am indeed trying to solve the problem by doing research on the net and it is very enriching.

I read the console when it does not work and there it says to me:
Wix code SDK error: The url parameter that is passed to the src method cannot be set to the value . It must be of type url.

I deduced that websiturl is a string and I have to convert this string to url