Use MaxLength attribute of the Text field. Example: <INPUT type="text" id=text1 name=text1 maxLength=10>
There is an example of using D&D within IE and Netscape at http://tech.irt.org/articles/js204/ and http://developer.netscape.com/docs/examples/dynhtml/dragable/, respectively.more
Fading can be done be the Opacity Settings. Actually opacity is one of the attribute in the Filter Property of the Casacading Style Sheets Sample Code <HTML> <BODY> <img src=...more
All the variables declared between <script> and </script> tags that are independent of any functions defined are initialized before onLoad() function of the page. These are nothing but...more
I have a few paragraphs where I want to provide meaning to certain words in the paragraph i.e., when the user moves the mouse over the certain word I want to display the meaning of the sentence.
I have a few paragraphs where I want to provide meaning to certain words in the paragraph i.e., when the user moves the mouse over the certain word I want to display the meaning of the sentence. I ...more
How do I disable a Text Area so that the user is only able to see the contents, but not allowed to change the contents?
Use the readonly attribute: <textarea name="ta" rows="20" cols="20" readonly>add text here</textarea>
How can I programmatically bring up a Find window? window.find() works in Netscape, but not in IE. <form> <input type="button" value="Find" onClick="window.find();"> </form> more
There is a ActiveX Control called Winsock. Using the 2 properties of Winsock Control 1.Winsock.LocalHostName 2.Winsock.LocalIP the System name and IP Address of the Client System can be capture...more
The Math object includes properties for several different constants: E - base of the natural logarithms, 2.71828... LN10 - natural log of 10, 2.30258... LN2 - natural log of 2, 0.69314... LOG10E ...more
The window.resizeBy(deltaWidth, deltaHeight) method will do this for you. Use positive numbers for larger windows and negative for smaller.
The window.resizeTo(width, height) method will do this for you.
To move a window to a relative location, use window.moveBy(x-delta, y-delta).
To move a window to a specific location, use window.moveTo().