How does Asp.net Add a webpage to a home page or to favorites?

Source: Internet
Author: User

<Span onclick = "Var strhref = Window. location. href; this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // 172.24.96.9/DD/'); "style =" cursor: Hand "> //

<

Href = "#"

Onclick = "window. External. AddFavorite ('HTTP: // 172.24.96.9/ddxx/', 'Your company name')" Title = your company name'>

 

<Input type = button value = import favorites onclick = Window. External. importexportfavorites (true, "http: // localhost/");>

<Input type = button value = export favorites onclick = Window. External. importexportfavorites (false, "http: // localhost/");>

<Input type = button value = favorites onclick = "window. External. showbrowserui ('organizefavorites ', null)">

<Input type = button value = view the source file onclick = "window. Location = 'view-Source: '+ window. Location. href">

<Input type = button value = language setting onclick = "window. External. showbrowserui ('languagedialog ', null)">

<Input type = button value = add to favorites onclick = "window. External. AddFavorite ('HTTP: // www.vipcn.com/', 'Flash download')">

<Input type = button value = add to channel onclick = "window. External. addchannel ('HTTP: // www.vipcn.com/')">

<Input type = button value = set to homepage onclick = "this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.vipcn.com/') ">

 

How should I write code for setting "set as Homepage" and "add to Favorites" on a website? (Add a small image)

<A href = "#" onmouseover = "window. External. AddFavorite ('HTTP: // www.dabaoku.com/', 'etime special statement')" target = "_ Self"> Add to favorites this page </a>

<A href = "#" onmouseover = "this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.dabaoku.com/'); "target =" _ Self "> set to homepage </a>

Set as Homepage

<A href = # onclick = "this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.baidu.com '); "> image </a>

-----------------------------------------

Add to favorites

<A href = "javascript: window. External. AddFavorite ('HTTP: // www.baidu.com ', 'Baidu')"> image </a>

Add to favorites

<A href = "javascript: window. External. AddFavorite ('HTTP: // www.baidu.com ', 'Baidu')"> Add to favorites </a>

Homepage

<Span onclick = "Var strhref = Window. location. href; this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // www.laofang.com '); "style =" cursor: Hand "> <br> set as homepage </br> </span>

<A href = # onclick = "This. style. Behavior = 'url (# default # homepage) '; this. setHomePage

('HTTP: // www.../'); "> set to homepage </a>

Src = "images/dot.gif" width = 12 Border = 0> <a href = # onclick = "window. external. addFavorite ('HTTP: // www ...... /',' **** '); Return (false) "> Add your site to favorites </a>

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.