Adding Favorites and home-based code in. Net

Source: Internet
Author: User

<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 &quot; 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.