How to add a particular website in Favorites menu?

Posted by Ddd under ASP.NET category on | Points: 40 | Views : 1872
Suppose we want to add in the Favorites menu in the browser

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="form1" runat="server">
<input id="Button1" type="button" value="add to favorite" onclick="demo()" />
<script type="text/javascript">
function demo() {
window.external.AddFavorite("", "dotnetfunda");


When we the button is clicked, an inputbox will open containing both the arguments specified in its 2 textboxes.

Just click the Add button of the inputbox.

Comments or Responses

Posted by: T.saravanan on: 1/21/2011 Level:Silver | Status: [Member] [MVP] | Points: 10
Hi Dinesh.K,

Nice Code.My suggestion just post your code using code tag.

Login to post response