SP.Utilities.Utility.getImageUrl(imageName) Method

SharePoint 2010

Last modified: May 24, 2011

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To

Gets the URL of the specified image.

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


Type: string

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

Type: string

The URL of the image.

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