Export (0) Print
Expand All

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:
© 2014 Microsoft