WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead.

User.prototype.imageTag()

Display the user’s profile image.

Syntax

user.imageTag(size int) string user.imageTag(size int, className string) string

Parameters

className string

Use a custom class name for styling purposes.

Description

Get the user’s profile image as an <img> tag that you can directly embed in your HTML code.

Examples

Display the profile image of the sandbox user.

Provide a custom class name.