<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank

Can JavaScript steal text from your clipboard?
Can JavaScript steal text from your clipboard? It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
2010-08-24, 3804👍, 0💬

How to write a script manage a list using JavaScript?
How to write a script manage a list using JavaScript? 1. To remove an item from a list: set it to null: myList[3] = null; 2. To truncate a list: reset the length property: myList.length = 2; 3. To delete all items in a list, set the length to 0: myList.length = 0;
2010-08-24, 3668👍, 0💬

Methods GET and POST in HTML forms - what's the difference?.
Methods GET and POST in HTML forms - what's the difference?. GET: Parameters are passed in the querystring. Maximum amount of data that can be sent via the GET method is limited to about 2kb. POST: Parameters are passed in the request body. There is no limit to the amount of data that can be transfe...
2010-08-17, 3743👍, 0💬

What is the data types of variables of in JavaScript?
What is the data types of variables of in JavaScript? Number, String, Boolean, Function, Object, Null, Undefined.
2010-08-17, 3491👍, 0💬

In a pop-up browser window, how do you refer to the main browser window that opened it?
In a pop-up browser window, how do you refer to the main browser window that opened it? Use window.opener to refer to the main window from pop-ups.
2010-08-10, 4536👍, 0💬

What is negative infinity?
What is negative infinity? It’s a number in JavaScript, derived by dividing negative number by zero.
2010-08-10, 4027👍, 0💬

What does isNaN function do?
What does isNaN function do? Return true if the argument is not a number.
2010-08-03, 3764👍, 0💬

Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users?
Are you concerned that older browsers don't support JavaScript and thus exclude a set of Web users? Fragmentation of the installed base of browsers will only get worse. By definition, it can never improve unless absolutely everyone on the planet threw away their old browsers and upgraded to the late...
2010-08-03, 3611👍, 0💬

How can JavaScript be used to personalize or tailor a Web site to fit individual users?
How can JavaScript be used to personalize or tailor a Web site to fit individual users? JavaScript allows a Web page to perform "if-then" kinds of decisions based on browser version, operating system, user input, and, in more recent browsers, details about the screen size in which the browser is run...
2010-07-27, 3771👍, 0💬

How to set a HTML document's background color?
How to set a HTML document's background color? document.bgcolor property can be set to any appropriate color.
2010-07-27, 3533👍, 0💬

What can JavaScript programs do?
What can JavaScript programs do? Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations can be performed on the client's machine The user's browser, OS, screen size, etc. can be detected Date...
2010-07-20, 3865👍, 0💬

Where are cookies actually stored on the hard disk?
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In the case of Netscape with Windows, all the cookies are stored in a single file called cookies.txt c:\Program Files\Netscape\Users\username\ cookies.txtIn the case of IE, each cookie is stored in a separ...
2010-07-20, 3734👍, 0💬

How to add Buttons in JavaScript?
How to add Buttons in JavaScript? The most basic and ancient use of buttons are the "submit" and "clear", which appear slightly before the Pleistocene period. Notice when the "GO!" button is pressed it submits itself to itself and appends the name in the URL. &lt;form action="" name="buttonsGalo...
2010-07-13, 3652👍, 0💬

Example of using Regular Expressions for syntax checking in JavaScript
Example of using Regular Expressions for syntax checking in JavaScript ... var re = new RegExp("^(&[A-Za-z_0-9]{1, }=[A-Za-z_0-9]{1,})*$");var text = myWidget.value; var OK = re.test(text); if( ! OK ) { alert("The extra parameters need some work.\r\n Should be something like: \"&a=1&c=4\...
2010-07-13, 3693👍, 0💬

What is a fixed-width table and its advantages?
What is a fixed-width table and its advantages? Fixed width tables are rendered by the browser based on the widths of the columns in the first row, resulting in a faster display in case of large tables. Use the CSS style table-layout:fixed to specify a fixed width table. If the table is not specifie...
2010-07-06, 3637👍, 0💬

How do you target a specific frame from a hyperlink?
How do you target a specific frame from a hyperlink? Include the name of the frame in the target attribute of the hyperlink. &lt;a href=”mypage.htm” target=”BodyFrame”>>Next&l t;/a>
2010-07-06, 3550👍, 0💬

How do you target a specific frame from a hyperlink?
How do you target a specific frame from a hyperlink? Include the name of the frame in the target attribute of the hyperlink. &lt;a href=”mypage.htm” target=”BodyFrame”>>Next&l t;/a>
2010-06-29, 3420👍, 0💬

How to create arrays in JavaScript?
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We can add elements to this array like this scripts[0] = "PHP"; scripts[1] = "ASP"; scripts[2] = "JavaScript"; scripts[3] = "HTML"; Now our array scrips has 4 elements inside it and we can print or acces...
2010-06-22, 3584👍, 0💬

How do you convert numbers between different bases in JavaScript?
How do you convert numbers between different bases in JavaScript? Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt ("3F", 16);
2010-06-22, 3850👍, 0💬

What are JavaScript data types?
What are JavaScript data types? Number, String, Boolean, Function, Object, Null, Undefined.
2010-06-15, 4145👍, 0💬

How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improv
How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface? On their own, Web pages tend to be lifeless and flat unless you add animated images or more bandwidth-intensive content such as Java applets or other ...
2010-06-15, 3588👍, 0💬

How can JavaScript make a Web site easier to use?
How can JavaScript make a Web site easier to use? That is, are there certain JavaScript techniques that make it easier for people to use a Web site? JavaScript's greatest potential gift to a Web site is that scripts can make the page more immediately interactive, that is, interactive without having ...
2010-06-08, 3553👍, 0💬

How to detect the operating system on the client machine?
How to detect the operating system on the client machine? In order to detect the operating system on the client machine, use this property, navigator.platform[]. It will tell you the platform of the cient machine like: Win32.
2010-06-08, 4544👍, 0💬

How to read and write a file using JavaScript?
How to read and write a file using JavaScript? I/O operations like reading or writing a file is not possible with client-side JavaScript.
2010-06-02, 3743👍, 0💬

<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Rank