JavaScript alert () function detailed instructions

Here is a brief introduction to the use of the JavaScript alert () function, the alert--pop-up message dialog box, and the Alert message dialog box is usually used for some informational messages to the user.   JavaScript alert () Function alert--Pop-up message dialog (there is an OK button in the dialog box) alert, the meaning of the Chinese "reminder" alert function Syntax alert (str); Alert Function Tip Box ...

JS mouse over show large image code

JS mouse over the display large figure code to provide a JS mouse over the display of large code, like a lot of sites will have a mouse on the small map to show the big picture effect, especially the mall site use a lot, below we also look at it. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" http://www.w3.org/tr/xhtml1/dtd/xhtm ...

Use JS to get picture size and picture sizes (height and width)

The use of the picture size and picture sizes (height and width) to note that the picture must be completed before JS get the picture width and height, so to judge in the readystate== "complete" state to get the size, if it is to use file upload,  Always click to clear image=new image (); Imgage.width and Height Oh. <!doctype HTML PUBLIC "-...

JS get the IFRAME page back to the parent page

A simple and practical JS to get an IFRAME page back to the parent page code, he can use JS to get the value of the IFRAME or to get the parent page values to each other page oh. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" Http://www.w3.org/tr/xhtml1/dtd/xhtml1-tr ...

JS Organize favorites to save the page code

This article provides two JS collation favorites Save the page code Oh, if you are looking for to add a collection and the Web page code Save As the words here provided this two code OH. < organize favorites Html> <head> <title> Show "Organize Favorites" </title> </head> <body> <a href= "Web effects: External.showbrow ...

The solution to the invalidation of the text line-height under IE6

When the text in a container is connected with IMG, input, textarea, select, object and other elements, the Line-height value set for the container is invalidated, and the row height of the above elements may be x2, the affected browsers: ie5.01, ie5.5,   ie6.0. The solution is to be connected with the text of the IMG, input, textarea, select, object and other elements to attribute, the code is as follows: ... line-height ...

JavaScript compatible with IE and Firefox copy to clipboard effect

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml ...

JS Add Bookmark Collection Code

This section JS add Bookmark Collection code can be increased to share to Renren/happy/qq/Baidu/google bookmark/Sina Collection Sina Weibo and other JS code ha. Much. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitiona ...

JS dynamic loading CSS and javascrpt files

JS Dynamic loading CSS Tutorial and Javascrpt file This article is a free JS dynamic loading css and javascrpt file download package, if you are looking for dynamic loading JS or dynamic load CSS JS function here is very good ha, He can traverse javascrt or link to add again depending on user settings.   */function $import (path,type,title) {var s,i; if (type = = ....

JS gets the value of the select (the value of the Drop-down box)

This article provides a JS to get the value of select (Drop-down box) Oh, here is an example to test the removal of the value of the Drop-down box code. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.jzread.com/tr/xhtml1/dtd/ Xhtml1-transitional.dtd&quo ...

JS gets the value of radio

In fact, the value of JS to get Radio is very simple, if it is a radio button group to traverse the line, if the radio is directly judged. Value on the line. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" Http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dt ...

JS input box can only be entered in Chinese, English, numerals, @ symbols and. Symbol Regular

This article collects a few JS input boxes can only input Chinese, English, numerals, @ symbols and. Yes, the first one is only English. The second is to enter only Chinese, English, numerals, @ symbols and. Symbols, the third is to enter only English letters and numbers, can not enter Chinese and so on. can only input English <input type= "text" onkeyup= "Value=value.replace (/[^a-za-z]/g, ')" ...

JS input can only be entered as a number (compatible IE and Firefox) regular

The article has a collection of JS input can only enter a number (compatible with IE and Firefox) is regular, the front two is online to find but seems to not support Ie,firefox regular, and later a very beautiful compatible with multiple browsing the regular method ha. You can only enter digital <input onkeyup= "value="/value.replace (/["^d]/g") "Onbeforepaste=" CLI ...

How to prevent copying of Web page content (compatible IE,FF)

I had a friend problem yesterday. How do I copy Web content, and also compatible with Ie6,ie7,ie8,firefox and other mainstream browsers, today I write a Web page to prohibit the copying of code. <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" Http://www.zhutiai.com/tr/xhtml1/dtd/xhtml1-tra ...

JS detection upload picture type and width (scaled)

JS detect upload Picture type and width (scaled) <form action= "method=" post "enctype=" Multipart/form-data "name=" Dform "> <label for=" IFile "></LABEL>

JS can only enter a number (positive integer, positive, negative, decimal)

JS can only enter a number (positive integer, positive, negative, decimal) This is a simple use of JS to verify that you can only enter the number (positive integer, positive, negative, decimal) Oh, if you are considering allowing users to enter numbers can come in to see. Only numbers are verified <script language= "Web Effects" type= "Text/javascript" > Function checknum (obj) ...

Four JS get address bar parameter instance function

This article has a collection of four JS access to the address bar parameter instance functions, they will use the splite to take? The parameters behind, and then split to separate & back parameters Oh, save to the data and then processed OH. <script language= "Web Effects" > var url=window.location.search; if (url.indexof)! =-1 ...

JavaScript City Select Linkage Menu code

The following page special effects City Select Linkage Menu code is I get down from other sites, very good use, all cities are used, you just put the JS part of the save, and then fix Select to modify as follows this select the same name can be used. <p><select class= "select_com" id= "City" style= margin-top: -1px; Margi ...

Two JS picture preload progress bar (MooTools)

To provide two pictures preload progress bar effect code, can be loaded on the site picture is slow to provide, so you can increase the user experience Oh, we use a JS and MooTools instance code. <script> var l=0; var IMGs; var sum=0; function Chk () {document.getElementById ("AA"). innertext= "&qu ...

Lower right corner ad JS code

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns=" http://www.jzread.com/1999/...

Total Pages: 21 1 .... 6 7 8 9 10 .... 21 Go to: 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.