0

Is it possible somehow in JavaScript to acquire the title and/or link of the parent of my current site?

I know that I can create a client context with a specific URL, but is it possible to do this relatively, so that the script can run on any website and catch the parent?

0

You could use the REST API to get the Title.

http://<sitecollection>/<site>/_api/web/parentWeb

Dev Center: http://msdn.microsoft.com/en-us/library/office/jj246539(v=office.15).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.