Commonly used code on webpages-basic things-HTML/Xhtml-web page creation

Source: Internet
Author: User
These are some of the Code commonly used in web design, IEonly. If you need to consider compatibility, you can refer to the articles published before the home.
◆ Add to favorites
Description Click to add your website to the favorites menu of your browser.
Code Generation Add to favorites

◆ Set as Homepage
Description Click to set your website as the browser's start page
Code Generation This. setHomePage ('HTTP: // www.jb51.net'); "style =" CURSOR: hand "> set as Homepage

◆ Remove the underline Of the hyperlink
Description Sometimes it's annoying to look at the underline Of the hyperlink. Put the following code into the source code of the webpage.AndBetween, the underline will disappear without a trace!
Note:There cannot be any link or other attributes in the tag, or the effect will be invalid!
Code Generation

◆ Automatically refresh the webpage
Description Automatically refresh web page
After adding the following code to the HTML page, the page automatically becomes target.html after 5 minutes. In the code, 300 is the refresh delay time, in seconds. Targer.html: The target page you want to switch to. If this page is set, the page is automatically refreshed.
Code Generation

◆ Refresh this page
Description Click to refresh this page.
Code Generation Refresh

◆ Return to the previous page
Description Click to return to the previous page.
Code Generation Back to previous page

◆ Jump out of a small window
Description When you open a page with the following code, a small window of 468x60 is displayed. “Window.html "is the page to be displayed in the pop-up window. Toolbar, status, menubar, scrollbars, set whether the toolbar, status bar, menu bar, and scroll bar of a small window are available, and resizable sets whether the browser can change the size of a small window, width and height are used to set the width and height of a small window. (However, such a small window is generally not welcome !)
Code Generation

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.