SP.Utilities.Utility.getImageUrl(imageName) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets the URL of the specified image.

var value = SP.Utilities.Utility.getImageUrl(imageName);

Parameters

imageName

Type: string

The file name of the image, including the file extension.

Return Value

Type: string

The URL of the image.

Remarks

The URL is in the _layouts/images folder relative to the root of the website.

Applies To

SP.Utilities.Utility Class

See Also

Reference

SP.Utilities.Utility Methods

SP.Utilities Namespace