Search...
clickAction
Sets or gets the action that occurs when an image is clicked.
Description
Setting the clickAction
property sets what happens when
an image is clicked.
The value can be set to:
"none"
: Nothing happens."expand"
: The image opens in a popup window."link"
: The image'slink
opens."magnified"
: The cursor becomes a magnifying glass when a visitor hovers over the image.
Getting the clickAction
property returns what happens when
an image is clicked.
Note:
expand
andmagnified
are not supported in Editor X. Learn more about Editor X and images.
Type:
stringRead & Write
Was this helpful?
Get the action that occurs when an image is clicked
Copy Code
1let action = $w("#myImage").clickAction; // "magnified"
Set the action that occurs when an image is clicked
Copy Code
1$w("#myImage").clickAction = "magnified";