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 |
|