SP.WebCreationInformation.url property (sp.js)

Gets or sets the URL leaf name of the new site.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.WebCreationInformation.get_url ()
var value = SP.WebCreationInformation.set_url ()

Return value

Type: String

Remarks

This property must not be null. The length of this property must be equal to or less than 128 characters.

This property must not contain consecutive "/" or "." characters. It must not begin with or end with "/" or "." characters. It must not contain the string "/wpresources". And it must not contain any of the following characters: ~"#%&\*:<>?\\{|}\x7F