Pinning a Site to the TaskbarThere is no programmatic way to pin a site to the taskbar. All pinning actions require user intervention. Users must complete one of the following actions to pin a site to the taskbar:
• Tear off a tab, and drag it to the taskbar.
• Drag the favicon from the address bar in Internet Explorer to the taskbar.
The following screen shot shows how a user might tear off a tab to pin the CNN website to the taskbar.
Figure 2: A user clicks and tears the tab to isolate it from any other tabs in the open browser
Figure 3: A user drops the tab on the taskbar to pin the site to the taskbarAfter the site is pinned, notice that the site renders with custom enhancements. For instance, the
Back and
Forward buttons match the color of the website.
Figure 4: A pinned site that is customized by using meta elements incorporated in the websiteWe recommend that you encourage users to tear off tabs and use them as pinned sites. For instance, the following sample page from the Internet Explorer 9 Test Drive site includes a prompt (you can dynamically disable this notification later, testing for the msIsSiteMode method to know when it is appropriate to do so).
Figure 5: A website displays a prompt to increase knowledge of pinned sitessource:msdn.microsoft.com