Use activexobject in JavaScript to fill in and set the Excel format

Use activexobject in JavaScript to fill in and set the Excel format VaR xlobj = new activexobject ("Excel. application ");VaR xlbook = xlobj. workbooks. Add; // Add a workbookVaR excelsheet = xlbook. worksheets (1); // create a worksheet 2. Save

Open Excel (downmoon original) by calling Javascript in IE)

Open Excel (downmoon original) by calling Javascript in IE) Keywords: Javascript calls Excel Doctype HTML public "-// W3C // dtd html 4.0 transitional // en" > Html > Head > Meta HTTP-equiv = Content-Type Content =

Javascript & JQ 003 _ add methods and attributes for objects

/* VaR OBJ = new object (); // create an object obj. name = "Rabbit 01"; // Add the name attribute OBJ to the object. age = "24"; // Add the age attribute OBJ to the object. showname = function () {// Add the showname method alert ("My name is" +

Option Daquan in select for JavaScript operations

Option Daquan in select for JavaScript operations1: Determine whether item exists in the select option Function isexititem (objselect, objitemvalue ){VaR isexit = false;For (VAR I = 0; I If (objselect. Options [I]. value = objitemvalue ){Isexit =

6. prevent javascript injection attacks

This articleArticleThis article mainly introduces ASP. net mvc applicationProgramTo prevent javascript injection attacks. This article discusses two methods to prevent javascript Attacks:InWhen displaying dataTo prevent attacks by using

Implementation of JavaScript classes

It is often seen in several groups that someone asks how a function in a class calls this. The exposed method after definition. Now I am publishing an article on implementation of the class. First, let's talk about the class. In a class, we have

Javascript type conversion (conversion of characters to numbers and numbers to characters)

In Java, the forced conversion between basic types is not like this. For example, to convert Integers to strings, you must use integer. tostring () static method or string. the valueof () static method converts a string to an integer and must use an

Javascript control can only enter numbers and decimal points

very useful. Code example: input onkeypress =" Return event. keycode> = 48 & event. keycode onpaste =" return! ClipboardData. getdata ('text '). match (/\ D/) " ondragenter =" Return false " style =" ime-mode:

Object-oriented Javascript

Javascript is an interpreted, Object-based scripting language. Although JavaScript Functions are weaker than the mature object-oriented languages such as C ++ and C #, the functions of JavaScript are large enough for its intended use. However, for

Javascript pop-up mode window

It is useful to see articles on the Internet.ArticleSome parameters of the JS pop-up mode window are considered to be good. Solution:     In general, the front window is displayed because the window is activated to obtain the focus. To make the

Javascript dynamic creation form submission

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Script Language = " Javascript " Type = " Text/JavaScript " > // Function that creates the form, adds some

Summary of common Javascript Regular Expressions

Before introducing the regular expression syntax, we should first learn the following methods: Regular Expression Method: Test (), exec ()String object Methods: match (), search (), replace (), split ()   Test () method:Usage: Regexp object

Ultimate Guide to JavaScript encryption and decryption

From: http://www.knowsky.com/5875.html   This document describes seven methods:I. Simplest encryption and decryptionIi. Use the Escape Character "\"3. Use the script encoder produced by Microsoft for encoding (simple decoding)4. Add any NUL null

[Screenshot] JavaScript retrieves some objects on the screen.

ArticleDirectory Reference From:Http://www.knowsky.com/531967.html     visible area width: document. body. clientwidth visible area of the webpage: document. body. clientheight visible area width: document. body.

DHTML event (JavaScript event) List

Onabort Download interruptedImage. Onactivate WhenObjectTriggered when it is set as an activity element. Onafterprint ObjectThe associated document is immediately triggered on the object after being printed or

Using JavaScript to evaluate the strength of user input passwords

Script Type = " Text/JavaScript " > // Charmode Function // Test the type of a character. Function Charmode (in) { If (In > = 48   && In 57 ) // Number Return   1 ; If (In > = 65   &&

Javascript Control Server Control-js operation checkboxlist to achieve full selection and inverse selection

From: http://hi.baidu.com/rayshow/blog/item/db300a60aff610da8db10d01.html Javascript Server Control checkboxlist all selected Inverse For the checkboxlist control, on the one hand, it is necessary to bind a large amount of data to the server, and on

Several common string functions in JavaScript (split (), join (), substring (), indexof ())

Function: Split ()Function: Use a specified separator to split a string and store it in an arrayExample:STR = "JPG | BMP | GIF | ICO | PNG ";Arr = thestring. Split ("| ");// Arr is an array containing character values "jpg", "BMP", "GIF", "ICO", and

Javascript effect (navigation)

1. Move the mouse to display the navigation bar. Move the mouse to hide the navigation bar and use Div to control the navigation bar. Style = "border-Right: # ff9900 1px solid; border-top: # ff9900 1px solid; display: none; Background: URL

Total Pages: 5378 1 .... 2624 2625 2626 2627 2628 .... 5378 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.