Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

buttonID property

Gets the Thumbnail Toolbar button ID that is clicked.

This property is not supported for Windows Store apps using JavaScript.

Internet Explorer 9

 

Syntax

JavaScript

p = object.buttonID

 

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

event
MSSiteModeEvent
msSiteModeAddThumbBarButton

 

 

Show:
© 2017 Microsoft