Javascript sets the page as the homepage code

Source: Internet
Author: User
Add to favorites and set it to homepage Code
Run the following code <body> at the corresponding position:

<A target = _ top href = javascript: window. External. AddFavorite ('HTTP: // www.netbei.com & #39;, 'wangbei

Website construction-professional website construction information web')> Add to favorites </a>
<A href = # onclick = "This. style. Behavior = 'url (# default # homepage) '; this. setHomePage

('Www .netbei.com '); "> set to homepage </a>

Automatically (forcibly) set as homepage code

Download the compressed file, which has the following instructions:
Click to browse this file

Set the prompt to homepage when you point

Insert the following code into the <body> area:

<A href = "http://www.netbei.com/" onmouseover = "This. style. Behavior = 'url

(# Default # homepage) '; this. setHomePage ('HTTP: // www.netbei.com'); "target =" _ blank "> set to homepage </a>

 

When the page is opened, a window pops up automatically asking if it is set as the homepage
Place the following code between

<Script language = "JavaScript">
Function myhomepage (){
This. Homepage. style. Behavior = 'url (# default # homepage) '; this. Homepage. setHomePage

('HTTP: // www.netbei.com ');
}
</SCRIPT>
<P align = "center"> <a href = "http: netbei.com" name = "Homepage"

Onclick = "myhomepage ();"> </a>

Add the following code to <body>:

Onload = "myhomepage ();"
That is: <body onload = "myhomepage ();">

 

When you leave, the system automatically prompts you to set it to the homepage.

<Body onUnload = "basebody. style. Behavior = 'url (# default # homepage) '; If (! (Basebody. ishomepage

('HTTP: // eyaya.com.ru ') basebody. setHomePage ('HTTP: // www.netbei.com/'); ">

Related Article

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.