Tuesday, June 24, 2008

page bookmark in javascript

var urlAddress =window.location.href;
 var pageName = document.title;
  function addToFavorites()
  {
  if (window.external)
  {
  window.external.AddFavorite(urlAddress,pageName)
  }
  else
  {
  alert("Sorry! Your browser doesn't support this function.");
  }
}

No comments :

Post a Comment

AJAX, asp, Asp.net, asp.net and sql server security, Asp.net IntemIndex, C#, Css, DataBinder.Eval, DataKeyNames, Datalist, Datapager, DataSet, DataTable, DropDownList, FindControl, gridview, JavaScript, jquery, Listview, Paging, Regex, RegularExpression, Repeater, Server side validation, Sql Server, timer, timercallback, Validation, XML, xmlnode, XPath