Javascript IE and Firefox compatibility highlights 1. document. form. item
(1) existing problems:
Many statements such as document. formName. item ("itemName") exist in the existing code and cannot be run in MF.
(2) solution:
Use document. formName.
In the MessageBox of Js, someone on the Forum imitated alert and wrote
I wanted to imitate the MessageBox in winapi
But unfortunately, js does not support blocking mode.
The returned value can only be asynchronous.
Support for FF ie opera
DOCTYPE
An interesting section about textarea
script Return to previous page or head to Hardwaregeeks.com. [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Words such as classname and csstext were frequently used before using scripts to call styles, but they do not know how to use them. I recently started to build my website and gained a lot. I would like to share with others who do not understand it.
Sometimes when we copy content on a webpage, there are always numbers starting with the following:
1. Replace the beginning number in the article
The Code is as follows:
1 script23 var tt =/* define tt here */;45 var errCount = 0 // global
Hard Disk browsing program. You can use the hard disk browsing program after saving the program as a webpage. Save it as a webpage and place it on a random disk instead of a desktop.
The Code is as follows:
JS obtains the password of IUSR _ machine name and IWAM _ machine name. Occasionally, I want to know the password of IUSR and IWAM accounts, but I often forget adsutil. I checked the usage of vbs today and found that the code is actually very simple:
The magic variable that drives you crazy in JavaScript exists in this variable tt, which satisfies the following code.
After the code is executed, errCount = 0 and the asserted function has no alert information
The Code is as follows:
The Code is
When jQuery was used to pay attention to jQuery, it was initially thought that the extension of the dom object was obtained using $ ("# someid, $ ("# someid "). value, $ ("# someid "). text and so on. Unfortunately, the value cannot be obtained. It
Drag Layer Effect, compatible with IE and FF! The Code is as follows:
DoDi Chat v1.0 Beta
body { text-align:left; margin:0; font:normal 12px Verdana, Arial; background:#FFEEFF } form {
The full-screen advertisement code is implemented in IE, and the overhead is incomparable. ALT + TAB cannot be switched out. Living .....
Script var w1 = window. createPopup () document. write (" ") w1.document.body.oncontextmenu=w1.doc ument.
This article describes the detailed summary of the js verification form, which has some reference value and needs, you can refer to the good JS verification ~~~~~~~~~~~~~~~~~~~~~~~~~
Purpose: Verify the IP address format.
Input: strIP: IP
Recommendation: Cool right-click menu
The Code is as follows:
之间输入下面的代码++++++++++++++++++++++++++++++++ --> Right-click to see!
Onmousedown = "down = true; pleft = event. clientX-parseInt (plane. style. left );Ptop = event. clientY-parseInt
Getting keyboard control events is one of the most interactive methods.
First, you need to know how to initialize the event. The basic statement is as follows:
Document. onkeydown = keyDown
When the browser reads this statement, the KeyDown ()
Bcastr2.0 universal image browser bcastr2.0 is a universal image browser that can be used in various news systems or blog systems.
Main functions:
1. You can read the playback list of xml settings.
2. You can directly write the image address to the
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