Hi all. I am creating a website, and I have javascript function that will play a video playlist by passing it a playlist ID. I want to be able to share a url that points to my website and also calls a javascript function, like:

http://www.yourdomain.com/p/myplaylist

If someone clicks/enters that url, they redirect to my website and the getPlaylist(id) function is called. Is there a way I can do this?