EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

표시:
© 2014 Microsoft