Common JavaScript code (7) and javascript codeArticle from "PHP Chinese network"
64. Document pathDocument. URL //65. regularly execute a programSettime out ("change_color ()", 600 );66. Set as home pageFunction makeHome (){Netscape. security. PrivilegeManager. enablePrivilege ("UniversalPreferencesWrite ");Navigator. preference ("browser. startup. homepage", lo
Common JavaScript code (5): javascript codeThe article is from "PHP100 Chinese network"
28. The character size can be comparedChar = post. charAt (I );If (! ('0' 29. Convert characters into numbersMonth = parseInt (char)30. Switch to the specified connection when you click the option of non-null value.31. Change the background colorOnmouseout = "this. bgColor =
JavaScript: copy content to clipboard code, javascript code
Recently, a front-end project has been created, where you need to copy the values in the input or textarea directly to the Clipboard through the button. The following small series will share with you my Implementation ideas and
Common JavaScript code (3): javascript codeThe article is from "PHP100 Chinese network"
8. Make the text scroll up or downHeight = 60>Republic9. the status bar shows the status of this page.10. You can click the text to select the radio option.11. onclick events can be written in the font of the text field.12. Print 13. Line type input boxClass = "line">14. disp
Common JavaScript code (2): javascript codeThe article is from "PHP100 Chinese network"
Obtain the microseconds represented by the timeVar n1 = new Date ("2004-10-10". replace (/-/g, "\/"). getTime ()Close Window?Win. closedCheckbox flatObtain selected contentDocument. selection. createRange (). duplicate (). textAutomatic completionWindow MaximizationNo close
Javascript: Javascript special effect: convert HTML into Javascript code automatically.
Sometimes you need to use Javascript to enter common characters, such as a footer for every page. Here is a conversion script:
SCRIPT function Preview (obj) {var TestWin = open (''); Test
In some cases, what we write is not copied by others. how can we implement it in code? The following small series will introduce you to the javascript code to easily prohibit the copying of webpage content. if you are interested, let's take a look at the following code, which is very simple and easy to prohibit the cop
Javascript implements special effects code for delayed display in the prompt box and javascript special effects code
This example describes how to use setTimeout in JavaScript to implement a latency pop-up warning box. Share it with you for your reference. The details are as
The JavaScript implementation code is switched randomly, and the javascript code is switched
Js achieves random number switching. The code is divided into js and html parts. For more information, see
Js Code:
Arr_wx = new Array
Automatically generate tables based on JavaScript code and automatically generate tables based on javascript code
If you don't talk much about it, paste the js Code directly. The specific code is as follows:
// Js automatically ge
There are actually several ways to view the webpage source code. The most common method is to directly select "view webpage source code" in the browser, but sometimes this method cannot work, the following describes several simple methods for your reference!
First: view-source method
View-source is a protocol that is basically supported by every browser in the early stage. But I don't know why. IE no longe
We will send SMS verification codes to our mobile phones when registering an account or participating in activities. This article will reveal how the SMS verification code is implemented, and send text message verification code for every subitem 1 javascript. interested friends can refer to this article to analyze the principle of mobile phone verification
1.Using the NuGet package "Jurassic", note that if the packages on NuGet are faulty, download the GitHub code yourself, compile the latest code into a DLL, and then refer to it.The official NuGet package is probably not up to date.2.I am the latest source code download compiled, self-referencing. Because the latest package on NuGet (version number "2.2.2") lacks
This article describes how to implement a simple verification code in JavaScript. the verification code mainly aims at website security and prevents malicious registration and login. if you are interested, you can refer to the verification code, it mainly aims at website security and prevents malicious registration and
JS Code to determine the browser version, supports IE6, IE7, IE8, IE9! For Web pages, JavaScript checks IE versions. Below are three types of code used to detect MicrosoftInternetExplorer versions. For Web pages, JavaScript checks IE versions are sometimes used, below are three types of
element in the attempt. However, we recommend that you use Dom to bind the event.
Resource Library: provides some UI space and JS shortcutsCode.
Work Zone
The upper part is an attempt; the lower part is an editing area, but it will change with the selected file.
Part2
The following describes how to develop a dashboard application.Perpetual Calendar. Script code: the code used by the post
When JavaScript is used on pages, where should these JS code be placed? Next, let's learn how to use JavaScript on the page. where should these JS code be put? Let's take a look.
Generally, there are two ways to write on the interface and use. js files.
1.1 Head part on the interface
You can directly put it in the hea
This article mainly introduces how JS can preview HTML code that can directly display the running effect of webpage code. it can directly run html code by obtaining the content of the text box and printing the output in a new window, it is simple and practical. if you need it, you can refer to the example in this article to describe the HTML
Common JavaScript code (4): javascript codeThe article is from "PHP100 Chinese network"
18. Change the button image.In this example, the button code is as follows:Onmouseout = "this. className = 'style3'" class = "style3">19. Print the page20. You can directly write the html language.Document. write ("");21. change th
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.