buttonID property
Gets the Thumbnail Toolbar button ID that is clicked.
This property is not supported for Windows Store apps using JavaScript.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Integer
the numeric ID of the button that is clicked.
Remarks
This event is fired when a user clicks a custom button in a Thumbnail Toolbar that pinned site adds with msSiteModeAddThumbBarButton. The button ID that this event returns is the same that is returned when the button was added.
Examples
The following script demonstrates how to attach an event handler and respond to a button click in pinned site.
function thumbnailClickHandler(evt) { alert ("Clicked button: " + evt.buttonID); } document.addEventListener('msthumbnailclick', thumbnailClickHandler);
See also
Show:
