This topic has not yet been rated Rate this topic

onmsthumbnailclick Event

.NET Framework 3.0
New for Windows Internet Explorer 9

Occurs when a user clicks a button in a Thumbnail Toolbar.

Syntax

Event Property object.onmsthumbnailclick = handler;
DOM Events object.addEventListener( "msthumbnailclick", handler, bCapture); Internet Explorer 9 New for Internet Explorer 9 
attachEvent object.attachEvent( "onmsthumbnailclick", handler); Internet Explorer only

Event Information

Bubbles No
Cancels No
To invoke Click a Thumbnail Toolbar button.
Default action N/A

Event Object Properties

 New for Internet Explorer 9  In Internet Explorer 9, the type of event object depends on whether you use attachEvent or addEventListener to register the event handler. If you register the handler with addEventListener, an object of type MSSiteModeEvent is passed during the event. If you use attachEvent, the legacy event object is passed instead.

Available Properties

buttonID

Gets the Thumbnail Toolbar button ID that is clicked.

Refer to the specific event object for additional event properties.

Remarks

The onmsthumbnailclick event is available only to documents that are launched from a pinned site shortcut. For more information, see msAddSiteMode.

Example

The following script demonstrates how to attach an event handler and respond to a button click in a Thumbnail Toolbar.


function thumbnailClickHandler(evt)
{
    alert ("Clicked button: " + evt.buttonID);
}

document.addEventListener('msthumbnailclick', thumbnailClickHandler); 

Standards Information

There is no public standard that applies to this event.

Applies To

document, HTMLDocument Constructor

See Also

msAddSiteMode
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ