非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

MSSiteModeEvent provides event properties that are specific to pinned site events.

This proprietary method is specific to Internet Explorer and Microsoft Edge.

DOM Information

继承层次结构

事件

MSSiteModeEvent

方法

方法 描述
initEvent Initializes a new generic event that the createEvent method created. *Note that as of Microsoft Edge, the createEvent()/initEvent() constructor pattern for synthetic events is deprecated.
preventDefault Cancels the default action of an event.
stopImmediatePropagation Prevents any further propagation of an event.
stopPropagation Prevents propagation of an event beyond the current target.

特性

特性 描述
actionURL Gets the URL of a Jump List item that is removed. *This property is not supported for Windows Store apps using JavaScript.
bubbles Gets a value that indicates whether an event propagates up from the event target.
buttonID Gets the Thumbnail Toolbar button ID that is clicked. *This property is not supported for Windows Store apps using JavaScript.
cancelable Gets a value that indicates whether you can cancel an event's default action.
cancelBubble Gets or sets a value that indicates whether an event should be stopped from propagating up from the current target.
currentTarget Gets the event target that is currently being processed.
defaultPrevented Gets a value that indicates whether the default action should be canceled.
eventPhase Gets the event phase that is being evaluated.
isTrusted Gets a value that indicates whether a trusted event source created an event.
srcElement Gets the element that the event was originally dispatched to. Compare to target .
target Gets the element that is the target of the event.
timeStamp Gets the time, in milliseconds, when an event occurred.
type Gets the name of an event.

Although this event inherits from the 事件 object, it cannot be created by using createEvent .

范例

interface MSSiteModeEvent extends Event {
    buttonID: number;
    actionURL: string;
}
declare var MSSiteModeEvent: {
    prototype: MSSiteModeEvent;
    new(): MSSiteModeEvent;
}
					

另请参阅

元数据

  • 最后修改: