<a href="javascript:window.external.addFavorite (' http://www.vkesoft.com ', ' Your website name ')" > <span style="font-size:10pt"> Add to Favorites </span></a><a href="Default.aspx" onclick="this.style.behavior= ' url (#default # Homepage) '; This.sethomepage (' http://www.vkesoft.com ')"><span style=" font-size:10pt"> Set homepage </span></a>
1: Set as homepage<a href="javascript:void (0);"Id="setHomePage"onclick="this.style.behavior= ' url (#default #homepage) '; This.sethomepage (' http://www.vkesoft.com/'); return (false);"style="Behavior:url (#default #homepage);"> Set as Home </a>2: Bookmark this site<span style="Cursor:hand"onclick="window.external.addFavorite (' http://www.vkesoft.com ', ' kai Bao net ')"> Collection of the Site </span>3: Different browsers, the collection of JS code has a difference, such as IE and Firefox. <a href=http://www.vkesoft.com onclick= "Window.external.addFavorite (This.href,this.title); return false;" title= ' Vkesoft ' rel = "sidebar" > Add to Favorites </a>
All browsers common JS add favorite code
<script>
function Addfavorite ()
{
if (document.all)
{
Window.external.addFavorite (' http://www.XXX.com ', ' XXX ');
}
else if (Window.sidebar)
{
Window.sidebar.addPanel (' XXX, ' http://www.XXX.com ', ' ");
}
}
</script>
<a href= "#" onclick= "Addfavorite ()" >XXX</a>
Open, Save As, properties, print " etc 14 JS code
Refresh
Import Favorites
Export Favorites
Organize your Favorite Folders
View Original file
Language Settings
Open
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (a) Type=button value= open >
<object classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 height=0 Id=webbrowser width=0></OBJECT>
Save As
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (4,1) Type=button value= Save as ><object Classid=CLSID : 8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>
Properties
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (10,1) Type=button value= Properties ><object Classid=CLSID : 8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>
Print
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (6,1) Type=button value= print ><object Classid=CLSID : 8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>
Page Setup
<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (8,1) Type=button value= Page Setup ><object classid= CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>
Refresh
<input Type=button value= Refresh Name=refresh onclick= "Window.location.reload ()" >
Import Favorites
<input type= "button" name= "button" value= "Import Favorites" Onclick=window.external.importexportfavorites (True,);>
Export Favorites
<input type= "button" Name= "Button3" value= "Export Favorites" Onclick=window.external.imp
Add favorites in. NET and set home page code (GO)