Javascript inserts other text at the cursor of a text area. For example, if a text area contains a text area, click the mouse and insert the text in the corresponding area.
I did this: first obtain the text box Value TextArea. Value, then. TextArea.
070823 the updated [Message prompt Box] component is compatible with ie7. Tip: 8.23 fixed the bug of ie 7 Display Error. Please download it again. Sorry for this!
Update description:
1. Fixed the incorrect button text in IE7.0. (The download
Lib. utf. js? 1.1.23
/* UTF-8 UTF-16 convertion library. */* Copyright (C) 1999 Masanao Izumo
* 2007 Ma Bingyao
* Version: 2.1
* LastModified: Feb 25, 2007
* This library is free. You can redistribute it and/or modify it.
Javascript functional programming the object nature of JavaScript functional programming:
Function ()
{
Var x = "something ";
Return B (){
// Do with x;
}
}
Var c = ();
Equivalent
Function ()
{
This. x = "dosomething ";
This. B =
Javascript reference object method code reference method on the same page:
1. Use id:
Link1.href
2. Use name:
Document. all. link1.href
3. Use sourseIndex:
Document. all (4). href // note that there are HTML, HEAD, TITLE, and BODY in front, so
The Application of alixixiruncode. asp code is good.
Script
Function click (e ){
If (document. all ){
If (event. button = 1 | event. button = 2 | event. button = 3 ){
Oncontextmenu = 'Return false ';
}
}
If (document. layers ){
If
Static pages use javascript to operate ACCESS Database (read, add, modify, delete) code static page reading accessdata warehouse .htm
The Code is as follows:
Can getElementById be used in any browser? Q: I know that getElementById can be used in IE, but I don't know if it can be used in other browsing scenarios, such as Firebox, Opera, netscape
Answer:
GetElementById is a standard method
If the js check client is not firefox, the system prompts to download var hasIE_phone_home = 0;
// This function does the actual browser detection
Function writeCookie (name, value, hours)
{
Var expire = "";
If (hours! = Null)
{
Expire = new Date ().
In javascript, the "closure" is used to implement the pause execution function. Author: yueying
Form: http://bbs.51js.com/thread-66361-1-1.html
Script
/* Basic Principle */
Var st = (function (){
Alert (1 );
Alert (2 );
Return function
Record a few small javascript-related details many and many things are easily forgotten, so I chose to record them.
Firefox does not support the obj. innerText attribute.
The value displayed by obj. innerText alert () is undefined.
Firefox
AddEvent. js code of the driver event
The Code is as follows:
Array. prototype. inArray = function (value ){Var I;For (I = 0; I If (this [I] === value ){Return true;}}Return false;};Function addEvent (obj, type, fn ){If (obj. addEventListener
With the increasing number of Ajax applications, various Ajax libraries (Prototype), Ajax Framework (DWR), and Ajax Toolkit (Dojo and YUI) are increasingly enriched, is there a way to combine them? Similar to Spring, of course, I cannot build an IoC
JQuery user manual 3 CSS operations traditional javascript operations on css are rather cumbersome, such
CssThe background syntax is document. getElementById (""). style. background, while jQuery is more convenient for css operations, $ ("# ").
Design a program in js so that it can print its own method to collect and design a program in Javascript so that it can print itself
Script (function () {alert ("script" + arguments. callee + "() ")}) () script [Ctrl + A select all Note: If you
A good UBB coding function implemented in JavaScript: function JsUBB (str)
{
Var re = // [I/] (. [^/[] *)/[// I/]/gi;
Str = str. replace (re ,"
$1"); // Italics
Re = // [B/] (. [^/[] *)/[// B/]/gi;
Str = str. replace (re ,"
$1"); // Bold
Re = // [u/]
About how to use runtimeStyle attributes. When we use the DOM provided by IE in IE, we will find that there are three groups for style attributes, they are style, runtimeStyle, and currentStyle. I have mentioned the functions and basic functions of
Code that uses Div to simulate the showModalDialog mode menu effect today studies how to use javascript and p to create the display mode form of the current form, and a small example that makes the subform unable to operate!
I can refer to some of
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