How can I return this data from Function ?

Perhaps this post can help you …
https://www.wix.com/velo/forum/coding-with-velo/scrollto