Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The msthumbnailclick
event occurs when a user clicks a button or thumbnail icon in the taskbar.
This proprietary method is specific to Internet Explorer and Microsoft Edge.
object.addEventListener("msthumbnailclick", handler, useCapture)
The onmsthumbnailclick event is available only to documents that are launched from a pinned site shortcut.
pEvtObj [in]
Type: IHTMLEventObj
Pointer to an IHTMLEventObj interface for the current event.
function thumbnailClickHandler(evt)
{
alert ("Clicked button: " + evt.buttonID);
}
document.addEventListener('msthumbnailclick', thumbnailClickHandler);
window.external.msSiteModeSetIconOverlay(iconUri, toolTip);
window.external.msSiteModeClearIconOverlay();
handlerdocument.addEventListener('msthumbnailclick', onButtonClicked, false);
var btnPlay = window.external.msSiteModeAddThumbBarButton(iconUri, toolTip);
window.external.msSiteModeShowThumbBar();
function onButtonClicked(e) {
switch (e.buttonID) {
case btnPlay: play();
break;}
}