Share via


msSiteModeClearBadge method

Clears the notifications on a pinned site badge in Windows 8.

This method will only be supported in Microsoft Edge on Windows 10 in a future update.

 

Syntax

external.msSiteModeClearBadge();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Standards information

There are no standards that apply here.

Remarks

In Windows 8, tiles are updated at a frequency determined by the developer. A location on a website is polled to get the current notification. This method tells Windows 8 to clear the value on the pinned site badge immediately rather than waiting until the next scheduled time. This enables a webpage to keep the notification on Windows 8 in sync with changes on the site.

For example a news feed site might use a badge notification to display how many headlines are available. If a user see a there are 5 unread stories and visits the site. While on the site, he reads all stories, the webpage can clear the badge to show there are no unread stories.

See also

external

Pinned site notifications in Windows 8