Elastic { code; }
C#, ASP.NET, SharePoint, JavaScript, .Net
Saturday, May 30, 2009
Add To Favorites Script
function AddToFavorites()
{
var
url
= document.location.href;
if (window.sidebar)
{
// Mozilla Firefox
window.sidebar.addPanel(document.title,
url
,"");
}
else if( window.external )
{
// IE
window.external.AddFavorite(
url
, document.title);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment